Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rnelson/rossbot2000
A Discord bot :)
https://github.com/rnelson/rossbot2000
Last synced: about 2 months ago
JSON representation
A Discord bot :)
- Host: GitHub
- URL: https://github.com/rnelson/rossbot2000
- Owner: rnelson
- License: mit
- Created: 2023-02-23T18:13:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-31T17:41:18.000Z (about 1 year ago)
- Last Synced: 2023-12-31T18:29:27.723Z (about 1 year ago)
- Language: C#
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RossBot2000
## About
Someone added Mee6 to a Discord server and
created a custom command. When asked to create
a second, they pointed out that you are limited
to just one. After pointing out that they could
easily make something to handle multiple commands,
I figured I should probably make sure that it's
actually easy. And thus RossBot2000 was born.## Requirements
RossBot2000 is written in .NET 8 using the Discord.Net package. It will run on any system supported by
.NET 8. You will need to have an active Discord account to be able to create the application/bot and to
add it to a server.## Usage
1. Create [a new Discord application](https://discord.com/developers/applications).
2. Under Settings > Bot, add a bot and give your bot a cool name.
3. Under Settings > OAuth2 > URL Generator, select the `bot` scope, then under *General Permissions* select "Read Messages/View Channels" and select everything under Text Permissions.
4. Click the Copy button, and visit that URL.
5. Add your bot to your server.
6. Customize the `appsettings.json` file to your needs.
7. Run the bot with `dotnet run`.### SystemD
The contents of my `/etc/systemd/system/rossbot2000` are as follows:```ini
[Unit]
Description=RossBot2000
DefaultDependencies=false
Before=basic.target shutdown.target
Conflicts=shutdown.target[Service]
Type=notify
User=rnelson
Group=rnelson
ExecStart=/bin/sh /opt/rossbot.sh[Install]
WantedBy=multi-user.target
```The script it calls simply runs `dotnet run` with the specific environment I want:
```shell
#!/bin/sh
(cd /opt/RossBot2000 && dotnet run --environment RossBot2000)
```## License
RossBot2000 is released under the [MIT License](http://rnelson.mit-license.org).