Skip to content

A discord bot that utilizes the Liquipedia API for submission into the Team Liquid Hackathon 2.0.

License

Notifications You must be signed in to change notification settings

jtn-mcy/MCY-LiquidHacks-Discord-Bot

Repository files navigation

License: MIT

Header

MCY LiquidHacks 2.0 Discord Bot

A discord bot that utilizes the Liquipedia API for submission into the Team Liquid Hackathon 2.0.

Test the bot

Discord invite link (Temporary membership--You will be automatically kicked once disconnected, but this invite link does not expire.)
Note: If the bot is not online, feel free to message me (mechocreamy#8076) on discord to activate the bot.

Table of Contents

What is it
Why make it
Drawbacks and future improvements
Installation
Special Thanks

What is it? (Usage)

The MCY-bot is a Discord bot that queries the Liquipedia API and returns information about a user-requested player from a specific wiki. The bot uses the discord-py-slash-command module which allows users to use the bot via slash commands such as /MCY-help or /MCY-getplayer.

Current available commands:

/MCY-help
/MCY-wiki
/MCY-getplayer <wiki> <player>

Why make it?

I have never successfully created and deployed a Discord bot and LiquidHacks 2.0 provided an excellent opportunity to explore and learn some new skills.

While googling a player on liquipedia is likely to be very quick, being able to do a quick slash command and displaying in the channel a player's short bio and socials may be helpful in a community setting.

Drawbacks // Future improvements

  • The bot is optimized mostly for League of Legends, Dota2, and Brood War queries, so querying other wikis will likely make strange contextual mistakes.
  • Make it easier for the user to search for players. It requires the user to be very exact with the player's liquipedia page name.
  • Add randomizer
  • Remove embeds as the bot response can be very bulky
  • Add a cooldown to reduce frequency of API querying

  1. Obtain your tokens
  2. Prepare your Discord Bot
  3. Local installation
  4. Deploying to SAP cloud

Special Thanks

Marvin -- for his talk on creating and deploying a discord bot, and also an SAP BTP trial account
Discord bot tutorial -- Marvin's repository. Referenced and borrowed some code here for app.config.py and app.bot.py
LiquidHacks 2.0 Team Liquid's Hackathon event
Liquipedia The best website for esports information!
Liquipedia API
SAP Business Technology Platform
Discord Slash Commands Module documentation used for slash commands
Discord Developers Documentation Documentation on Discord API

About

A discord bot that utilizes the Liquipedia API for submission into the Team Liquid Hackathon 2.0.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages