A new Speedrun Bot for Discord!
3 years ago
Ohio, USA

Hello!

I have been developing a bot the last several months to work with the SRC API in order to check information on speedruns through Discord! It's got the following commands (each of which has links to images showcasing them in action):

$leaderboard ($lb) allows you to view any game's top leaderboards. You can enter a specific category for a more detailed list, or keep it generalized and have the most run categories displayed, along with a list of all categories available. https://i.imgur.com/TGFBstT.png

$worldrecord ($wr) will let you fetch all the information regarding a world record, either of a specific game category or of the most run categories, including comments made by the runner as well as a link to the video. https://i.imgur.com/BDSmiFT.png

$place ($p) will give you the same run details for any position on the leaderboard as the world record command. https://i.imgur.com/dDzw63x.png

$run ($r) lets you search for runs for any specific game category based on the player's username. Very convenient when you want to showcase a run you completed or a run that shows specific strategies at play. https://i.imgur.com/Uf5W3Hs.png

Not only will the bot show you all of this information through Discord, it will additionally add a hyperlink of the URL it got this information from in the title of the message. That way, if you want to quickly queue a link and send it to friends, it will be plain and simple!

I have personally scanned the site and manually entered multiple variations for each game's title, so for the most part, you shouldn't need to worry about getting the wording "just right". As of now, I have added manual variations of titles for games with > 230 runs registered (which will be worked on and lowered over time); for any games with > 10 runs, the official title of the game, as well as the URL shortcut on SRC, has been cached (and allows for slight typos) in order for you to still search those titles.

If you have any problems with this bot, please feel free to let me know, you can directly message the bot and I will receive its feed and get back to you. Additionally, if you have any requests concerning specific games or game series you would like me to personally index, I will be sure to prioritize those.

Below is a link to add the bot to any server you wish, if you have any speedrunning communities that may be interested in adding this bot, please let them know! It would be much appreciated.

https://discord.com/api/oauth2/authorize?client_id=668095923209109514&permissions=379968&scope=bot

Thanks, -MC

Edited by the author 3 years ago
LHBlitz, lemoncoughdrop and 16 others like this
Iowa, USA

Wow! this is really cool!

MC_2018 likes this
Kilkenny, Ireland

whats the link to the bot? im working on a roblox speedrunning server and would really like to add this bot!

Kilkenny, Ireland

never mind, im blind, i see the link lol sorry.

Maryland, USA

Hey MC, this is cool! I made a similar bot last year that's in quite a few servers: http://mattbraddock.com/srcom-bot/

happycamper_ and MC_2018 like this
Ohio, USA

Very similar project, nice! If you want to use my manually indexed files to have better name leniency, check out my repo for it. https://github.com/MC2018/BotManager/tree/master/src/main/java/botmanager/speedrunbot/scrape