NOTE: This project has halted development in favour of Seriel 💖’s sleeker Ruby-based RiiConnect24 bot
This is a Discord bot written in Python (based on discord.py "discord.py") meant for the RiiConnect24 chatroom.
It handles user data regarding wii friend codes
- Set a user's FC for a specific game
- Display a list of supported games for the database
- Display a list of all users with at least one registered FC
- Display a list of users who have registered a FC for a specific game
- Display friend code for a specific user for a specific game
- Display all users and friend codes for a specific game
- Backing up the database in the event of a dev using the
terminate()method - Loading backup files if restarting the bot after using the
terminate()method - Making commands not case-sensitive (i.e. so that
!getallgameswill run the same as!getAllGames) - Make getCode function disregard the “@“ symbol at the start of mentions when searching for users
- Create a separate !backup command for the devs to use, that’s not dependent on !terminate. That way they can make backups of the database without having to kill the bot
- A
getUsersOfmethod to return a list of users who play a specific game - A
getUsersAndCodesOfmethod to return a list of users and codes for a specific game - A
getUserCodesmethod to get all registered friend codes of a specific user helpmethod for providing users with easy documentation about commands
- Setting up the
terminate()method so it’ll only execute if the user is a dev - Setting the script up on a cloud server so I don’t need to have my personal laptop on 24/7
- Option to delete games/codes from a user’s information
- Option for a user to delete their information entirely
- Checking that friend codes are entered in the right format (
####-####-####-####forWII1/WII2/WII3,####-####-####for everything else) - will implement via regular expressions later - Add optional additional argument in
!helpthat will allow for explanation of specific commands (e.g.!help setCodewill return documentation for!setCode)
Sean Gibbons (seangibbz#5609 on Discord)
Danny (Rapptz) for discord.py