Skip to content

fongsean/Rotom-Bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project description image

Rotom Bot

The official server management bot for the Discord server The Pokehub written in Python using the discord.py wrapper.

Bot features

Tournament registration

Rotom Bot offers an in-house tournament registration system for Pokemon Showdown-based tournaments which is connected to the Showdown API for verification of users and battle replays.

Registering for a tournament in the registration channel <@member> <Showdown ID>
Tournament registration

Displaying a list of tournament participants .participants
Tournament list

Announcement of battle replay results dynamically
Tournament verify replay Tournament announce outcome

League management

The server hosts Pokemon league-style tournaments/events annually in which most, if not all components of the tournament are handled by Rotom Bot itself.

Display registered pool of challenger .pl <gen> or elite .epl <gen>
League pool League elite pool

Display profile of normal participant (challenger, gym leader, elite) .p <gen>
League profile

Display profile of current champion .champion
League champion profile

Role management for teams

Rotom Bot offers a role management system for "Villain Teams" based on the main Pokemon games. Members can freely join teams via Rotom Bot commands to access secret team chats with a 24-hour limit.

Select a desired team from the given choices .jt
Join team selection

Directly join a team .jt <Team>
Join team direct

Leave your current team .jt None
Leave team

Bot restricts members from switching teams if they have just switched teams recently within 24 hours Team switch duration limit

Profanity filter

Messages sent in server is filtered through a profanity filter based on better_profanity to introduce a Discord Pokemon community suitable for all ages.

Disallowed messages are deleted by the bot immediately
Profanity delete message

Deleted messages are logged in a moderator channel
Profanity deleted

Text translation

Rotom Bot offers a text translation feature, which comes in handy in case someone sent a non-English message in chat. Based on Googletrans with some slight modifications.

Text translation with auto-detect language .t <text to be translated>
Text translation auto-detect

Text translation with input-output languages defined .t <text to be translated> --<input lang> --<output lang>
Text translation input-output

Urban Dictionary and English Dictionary feature

Rotom Bot offers lookup of text on the Urban Dictionary via Urban Dictionary API on RapidAPI and English dictionaries via PyDictionary

Text lookup on Urban Dictionary .urban <text to be searched>
Urban

Text lookup on an English Dictionary .dict <text to be searched>
Dict

Snipe and edit snipe feature

Rotom Bot offers snipe (recover the previous message deleted) and esnipe (recover the previous message edited) features which works for messages modified within the last 60 seconds. These features are mainly for some conversational fun in the server.

Snipe message .snipe
Urban

Edit snipe message .es
Dict

Games section

Rotom Bot offers a game section which includes a few message-based games. Nobody really plays them nowadays though :( , but they were an interesting learning experience for the dev.

Guess The Number .gg
Guess The Number

Tic-Tac-Toe (implemented this one with a minimax algorithm) .ttt
Tic-Tac-Toe

Rock-Paper-Scissors .rps
Rock-Paper-Scissors

Miscellaneous features

Rotom Bot offers a multitude of other smaller features which are generally quite useful.

Discord avatar/profile picture of a server member or self .av <Member name>(optional)
Avatar

Pokedex entry of a pokemon .dex <Pokemon name>
Dex

Competitive pokemon sets fetched from Smogon sets <Pokemon name>
Sets

Pokemon weakness based on typing .weak <Pokemon name>
Weakness

Learnset of Pokemon (all moves that can be learned) .learnset <Pokemon name>
Weakness

About

A Discord Bot written in Python using discord.py wrapper.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%