A simple bot I made because I wanted my friends to stop deleting their messages.
It reposts all the messages from one channel to another, which can even be in another server!
However, the bot needs to be in both servers for this to work.
Reposts to a channel.
/repost <CHANNEL>
or /repost to <CHANNEL>
Reposts from a channel.
/repost from <CHANNEL>
Reposts through a webhook.
/reposthook
or /repostwebhook
instead of /repost
Reposts messages as they come.
/repostlive
or /repostlivehook
instead of /repost
Stops reposting.
/repost stop
or /repost halt
or /repost cease
or /repost terminate
or /repost suspend
or /repost cancel
or /repost die
or /repost end
Posts the command list.
/repost help
or /repost commands
Replaces text when reposting.
/repost replace <FIND> <REPLACE>
Posts the replacement list.
/repost replacements
Changes the bot prefix.
/repost prefix <PREFIX>
Toggles user tags when reposting.
/repost tags
or /repost tags <STATE>
Toggles nicknames when reposting.
/repost nicknames
or /repost nicknames <STATE>
Toggles pins when reposting.
/repost pins
or /repost pins <STATE>
- Create your app with a Bot.
- Copy your bot's secret token and paste it on this line. Please don't leak your secret token on github. If you're using heroku, try to replace it with
process.env.SECRET_BOT_TOKEN
and setup the environment variable in heroku. - Go to
https://discordapp.com/oauth2/authorize?client_id=<CLIENT_ID>&scope=bot
, with<CLIENT_ID>
as your app's client ID. - Install Node.js:
brew install node
- Install the dependencies:
npm install
- Run the bot:
npm start
- Hope it works!