Roblox Invites is a bot that connects your Discord server members to their activity on Roblox.
- Sends invites to a dedicated invite channel when a player joins a Roblox game
- Notifies your server if a player transfers servers or leaves a Roblox game
- Tracks your players' playtimes across Roblox games
- Creates overall/weekly leaderboards
- Add some personal touches to each game with Custom Titles
See Roblox Invites in action!
Joining a game (no Custom Title):

Joining a game (w/ Custom Title):

Joining other server members in a game (the other person is my alt account):

- Clone this repository anywhere on your PC, but preferably in a place you can easily access.
- Manually input your .ROBLOSECURITY cookie, your bot token, and guild ID (development purposes, this is optional) in .env (as cookie, token, and guild respectively)
- Setup a PostgreSQL database named "roblox_invites"
- Run main.py using Python 3.14+ (older versions can be used) with the modules in requirements.txt. For accurate playtime tracking, keep the bot running for as long as possible!
Roblox Invites offers a variety of commands!
You can generate playtime leaderboards (weekly/overall), game leaderboards, and user profile cards.
- /leaderboard all - Generates an all-time playtime leaderboard for your server
- /leaderboard last_snapshot - Generates a playtime leaderboard for your server from the last saved snapshot to now
- /leadebroard save - Saves a snapshot of user data
- /leaderboard remove - Removes the last saved saved snapshot
Example of a leaderboard generated by the bot:
(The information of other users has been redacted.)

Example of a game leaderboard generated by the bot:
(The information of other users has been redacted.)

user_id is autocompleted in these commands.
- /user add
username- Adds a user with usernameusername - /user remove - Removes the runner of the command from the server's userlist
- /user stats
user_id- Generates a user statistics card for useruser_id
place_id is autocompleted in these commands.
- /custom_title add
titleplace_idhex_color- Adds a Custom Title for place IDplace_idwith messagetitleand embed colorhex_color - /custom_title remove
place_id- Removes a Custom Title with place IDplace_id
blacklisted_id is autocompleted in these commands.
- /blacklist add
place_idgame_name- Adds place IDplace_idwith game namegame_nameto the blacklist. - /blacklist remove
blacklisted_id- Removes blacklisted place IDblacklisted_idfrom the blacklist.
- /settings invites
channel_id- Sets the invites channel tochannel_id - /settings announcements
channel_id- Sets the announcements channel tochannel_id
- /invite_user - Sends an invite card with your current game name and a link to join you
