Skip to content

A TWRP-themed general-purpose bot for the Ladyworld Discord servert to replace bots doing crypto/NFTs.

License

Notifications You must be signed in to change notification settings

corvance/phobosbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhobosBot

PhobosBot is a TWRP-themed starboard bot created for the Ladyworld Discord server, originally to replace existing 3rd party bots that began working with NFTs, cryptocurrency and other blockchain technology. TWRP is a Canadian band most recongisable for their costumed personas, concealing their real identities. You should check them out!

Features

  • Starboard message posting.
  • Up to 4 images in one starboard embed by taking advantage of the Discord client's embed aggregation.

Roadmap

  • Leaderboard of stars received, stars given and top starred posts.

Usage

To run the bot, install the dependencies, compile the TypeScript to JavaScript with tsc, enter the dist directory and run node bot.js with the environment PHOBOSBOT_TOKEN set to your bot token.

git clone https://www.github.com/corvance/phobosbot
cd phobosbot

npm i --save-dev typescript dotenv discord.js sqlite3 @types/sqlite3

export PHOBOSBOT_TOKEN=1234567890_abcdefghijklmnopqrstuvwxyz.ABCDEFGHIJKLMNOPQRSTUVWXYZ_12345
npm run compile && npm run start

You can run a testing instance of the bot using a Discord application bot with a username ending in '-Testing', changing the prefix from p/ to pt/. Before using, you MUST create a database file db.sqlite3 in the top level directory (adjacent to the dist directory). For it to work in your server, you must add it to the guilds table.

Dependencies

  • discord.js - The Discord bot development library.
  • dotenv - For loading the bot token from .env files in local development.
  • sqlite3 - For the starred messages database.

License

This repository is subject to the terms of the MIT License, available at the LICENSE file in the root directory.