This bot is live and is multi instances, if you just want to use it, add the bot to your server with this link : https://discord.com/oauth2/authorize?client_id=750703461581979758&scope=bot&permissions=191504
You will need a channel called allods-news
and the bot will put the news in this channel.
(if this channel doesn't exists, the bot will itself create it and set permissions to @everyone can READ
but not WRITE
and @bot can READ
& WRITE
)
If you want to host your own instance,
- create a discord bot here https://discord.com/developers/applications
- clone this repo
- create a
.env
file at the folder root that containsBOT_TOKEN=YourToken
- Start the app with a node process manager like
pm2
orforever
- Invite the bot on your server followin this url https://discord.com/oauth2/authorize?client_id=CLIENTID&scope=bot&permissions=191504 (replace
CLIENTID
by your own)
- Catch news by desired language, need to create a command and save language into sqlite db
- Auto give permissions and channel create to avoid
DiscordAPIError: Missing Permissions
error