A discord bot that detects keywords from shouts in a specified Roblox group and sends a custom message to a specified channel. Perfect for detecting a training has started or ended and to report that to a discord server! This bot was made using JDA 5 and a roblox api https://groups.roblox.com/docs/index.html#!/v1
- Make a .env file following the format of .env.example
- Run the bot (shouterBot.java) on your computer or host it in the cloud
- Token: Your discord bot token
- Group_ID: The id of your roblox group
- Channel: The discord channel in which you want the bot to send messages
- Keyword_started: The keyword that the bot will look for inside the group shout for the started event
- Keyword_ended: The keyword that the bot will look for inside the group shout for the ended event
- Tag_everyone: Wheteher the bot should tag everyone on the started event
- Message_started: The message the bout should send on start event this is how the messages look: @everyone (person who posted message on roblox group) message_started
- Message_ended: The message the bout should send on end event this is how the messages look:(person who posted message on roblox group) message_ended
- Interval: How often in seconds the bot should ping the api, longer times result in more time for the bot to update, less time might make the api throttle the connection.
The started keyword is set to "hosting": This is what the bot returns in specified channel:
This ofcourse works for any keywords, and keywords need to cycle. Meaning the bot will never send the started message twice or ended message twice, started event <-> ended event.
Note
If the bot dosent work try running both keywords again.