A Discord bot for crossposting from multiple servers into another server.
Download this repo through git with
$ git clone https://github.com/danielhklein/CrosspostBot.git
Two files need to be set up for this bot to work:
Create a file named auth.json
in the root directory.
It should follow this format:
{
"token": "your Discord bot token"
}
If you have not created a bot yet or don't have an auth token yet, you can follow steps 2 - 4 here to do so and authorize your bot with your servers.
Create a constants.ts
or constants.js
file in the src
directory.
It should follow this format:
export const serverMappings: object = {
"serverToReadFromId": {
"channelToReadFromId": "channelToWriteToId"
},
...
};
export const writeServerId: string = "serverToWriteToId";
You're ready to go now! Just run npm install
then npm run start
to run the bot.
Not currently, though I may add the ability to do so later (feel free to send a PR!)
Outside of Discord's built-in limitations, this bot has no hard read limits.You may experience performance issues if too many servers are being read, however.
You can! Just modify the arguments of destChannel.send
in CrosspostBot.ts
.
Currently I have verified that attachments, emojis, gifs, and spoiler tags will all crosspost properly. Let me know if something is not being preserved.
No.