https://github.com/nushell/nu-discord-bot
https://github.com/nushell/nu-discord-bot
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nushell/nu-discord-bot
- Owner: nushell
- License: mit
- Created: 2021-08-24T03:23:53.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-23T23:35:24.000Z (over 1 year ago)
- Last Synced: 2025-04-16T04:45:26.524Z (10 months ago)
- Language: Rust
- Size: 217 KB
- Stars: 4
- Watchers: 11
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nu-discord-bot
A Discord bot built with Serenity that runs Nushell commands in a custom context with limited privileges.
## Security
Even though the set of nushell commands made available to users of this bot is limited and excludes some of
the most obvious ways to interact with the host's file system and network, this is not, by itself, a secure level
of sandboxing. If you're going to use this bot on discord servers with untrusted users, you should run it inside
something like a docker container.
## To use
Load your bot discord token into the `DISCORD_TOKEN` environment variable. Run `cargo run`.
You should see you discord bot activate, and you can run commands with the prefix `nu!` e.g. `nu! help`.