daniel11420/announcer
This is a bot for announcing things. I made this to replace Dyno in CPBack. Feel free to use it.
Instructions
End User - Setup (Ubuntu)
- Download the repository to a folder and install dependencies.
mkdir Announcer
git clone https://github.com/daniel11420/announcer.git ~/Announcer
cd ~/Announcer
npm install
- Set the bot up (configuration file(s))
mkdir local
cp example_local/* local/
cd local
vim config.js
- Run the bot once to see if it works
cd ~/Announcer
npm run-script run-announcer
- If the bot works, go to the next step. If not, read what it tells you and try to figure it out or DM me at daniel11420#0069 on Discord.
- Stop the bot.
End-user - Running/stopping the bot (Ubuntu)
- Navigate to the bot directory
cd ~/Announcer
- Run the bot in a screen
screen -S Announcer npm run-script run-announcer
- Then, click
CTRL+A
andD
to detach from the screen. The bot should keep running even when you close the SSH session/login.
- To stop/kill the bot, run this command:
screen -X -S Announcer kill
- Notes:
- It uses permissions "Read Messages", "Send Messages", "Embed Links", "Mention Everyone"
- If you want to run multiple instances of the bot or already run a screen with the name
Announcer
, just replace "Announcer" in the above commands with something else
End-user - Using the bot (Any platform)
- To announce something, say
announcer:announce Text Here
. The bot will announce in the channel you wrote that in and it will delete your message. - If you want to ping @everyone or @here, add
--everyone
or--here
afterannouncer:announce
but beforeText Here
. Like this:announcer:announce --everyone Text Here
- Only users with the role you specified in the configuration file can use the bot.
Contributing
If you want to contribute, you should be smart enough to know how to set up a dev environment for the bot. (it's the same steps as running it normally lol) If you want to contribute, make a pull request and stuff. I'll look through it and accept it and stuff yeeeeeee