Skip to content

A small Discord bot written in Haskell for a functional programming class

Notifications You must be signed in to change notification settings

astrionic/discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-bot

A small Discord bot written in Haskell for a functional programming class.

Features

The bot can recognise commands and respond to them. It currently supports the following commands:

  • !commands to show a list of available commands
  • !flip flips a coin
  • !roll rolls a 20-sided die
  • !roll n rolls an n-sided die, where n is an integer from 2 to 1,000,000.

Planned Features

A command that lets users set their own role inside a channel was originally planned, but could unfortunately not be implemented because the library discord-haskell didn't provide the required functionality yet.

Dependencies

Usage

To run the bot, create a file called auth_token in the project's root directory and copy your Discord bot's authentication token into this file. You can get such a token by creating a bot on Discord's developer portal if you don't already have one. Make sure you don't accidentally share it!

Build and run the project using Stack:

$ stack run

About

A small Discord bot written in Haskell for a functional programming class

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published