/cricket-bot

A Pycord bot with a variety of uncommon functions.

Primary LanguagePython

cricket-bot

Heya! This is a simple Discord bot written with Pycord. I'm still learning to code, but I'd like to add many more functions soon!

Commands

  • A couple responses to common phrases in discord servers that I'm in
  • Has a disproportionate number of pictures relating to Nintendo character Waluigi
  • If people specifically spam "Wah" too much, it is disabled for the entire server for 24 hours.

Bot

  • /ping Get the ping of the bot- useful for diagnosing issues.
  • /say Allows the owner to make the bot say an arbitrary bit of text.

Minecraft

  • /minecraft ping Get player count, icon, and motd (+online players/plugins!) of a Minecraft server using mcstatus

Memegen

  • /memegen minecraft Generates some funky text that looks like a chat message from Minecraft
  • /memegen generate Generate a meme from one of many formats using the Imgflip API and a modified version of (pyimgflip)[https://github.com/TymanWasTaken/pyimgflip]
  • /memegen list List avalible formats for use with /memegen generate / Discord
  • /discord user Grab the avatar, ID, account creation date and server join date of another user or yourselfm
  • /discord emote Grab the file and link to an emote
  • /discord actvity Gives you a link to start a faaancy Activity in your voice channel! Requires permissions to create invites. Current activities are chess, offbrand amogus, and YouTube Together.

Installation

...why would you want to do this? I personally run Cricket in a Docker container, but she really only needs her requirements installed and an .env file in the same directory containing...

  • DISCORD_TOKEN - discord bot token
  • SUPPORT_GUILD - a guild for some commands related to the various cogs of the bot
  • IMGFLIP_USERNAME/IMGFLIP_PASSWORD - login for an Imgflip account, used for some commands

If you'd like Cricket to generate text and disable the wah command when it's spammed, add any TTF font with the name Minecraftia-Regular.ttf in the directory before building.

If you want to run in Docker, pull the repo, create the .env, and run docker compose up -d --build and you should be good.