Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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#
- Host: GitHub
- URL: https://github.com/yellowsink/fsharp-discord-bot
- Owner: yellowsink
- License: bsd-3-clause
- Created: 2021-09-06T21:09:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-06T21:28:01.000Z (over 3 years ago)
- Last Synced: 2024-11-10T08:35:45.146Z (3 months ago)
- Language: F#
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-fsharp-project-templates - yellowsink/fsharp-discord-bot - Basic template for writing functional discord bots in F# (List / Discord)
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/)