Code Monkey home page Code Monkey logo

discord-bot's Introduction

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

discord-bot's People

Contributors

astrionic avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.