๐Ÿ“ฆ denolfe / discord-crystal

General-use Discord bot written in Crystal

โ˜… 9 stars โ‘‚ 1 forks ๐Ÿ‘ 9 watching โš–๏ธ MIT License
botcrystaldiscord
๐Ÿ“ฅ Clone https://github.com/denolfe/discord-crystal.git
HTTPS git clone https://github.com/denolfe/discord-crystal.git
SSH git clone git@github.com:denolfe/discord-crystal.git
CLI gh repo clone denolfe/discord-crystal
Elliot DeNolf Elliot DeNolf Add Actions badge to README 05e226d 5 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ spec
๐Ÿ“ src
๐Ÿ“„ .dockerignore
๐Ÿ“„ .editorconfig
๐Ÿ“„ .gitignore
๐Ÿ“„ .gitlab-ci.yml
๐Ÿ“„ Dockerfile
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ shard.yml
๐Ÿ“„ README.md

Discord Crystal

Actions Status

General-use Discord bot written in Crystal

Installation

  • Crystal-lang needed for development
  • Docker/docker-compose (optional)

Configuration

Configuration is done through environment variables, .env file is read if it exists

  • DISCORD_TOKEN - Discord token generated from your Discord developer console
  • PREFIX - Command prefix, defaults to !

Usage

  • Clone then compile shards build
  • crystal run bin/bot

Commands

  • !choose - Chooses randomly between provided choices
  • !dadjoke - Random Dad Joke
  • !8ball - Shake magic 8-ball
  • !flip - Choose a side and flip a coin
  • !help - Displays all commands or details about specific command
  • !ping - Pings the bot
  • !roll - Roll a 6-sided die
  • !time - Displays the bot's time
  • !uptime - Displays the bot's uptime
  • !ud - Urban Dictionary definition

Auto-Reactions

  • :beers: emoji reaction to anything saying "cheers"
  • :peanuts: emoji reaction to any variation of "nuts", "nutty"

Contributors