Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yellowsink/fsharp-discord-bot

A basic template for writing functional discord bots in F#
https://github.com/yellowsink/fsharp-discord-bot

Last synced: 17 days ago
JSON representation

A basic template for writing functional discord bots in F#

Awesome Lists containing this project

README

        

# fsharp-discord-bot
A basic template for writing functional discord bots in F#

## How to test it
```
cd fsharp-discord-bot/FsharpDiscordBot
FSHARP_BOT_TOKEN="your token goes here" dotnet run
```

## Q 'n' A

### "that looks like lots of boilerplate"
Yes, this is how it is when using dotnet libs in F#

## "given the boilerplate, why would I want to use F#?"
As your bot grows, code cleanliness becomes more and more important.
The advantages of F# will slowly become much more apparent as your codebase expands.

For the general advantages of F# see [here](https://fsharpforfunandprofit.com/why-use-fsharp/)