mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-05-18 19:54:20 +03:00
wait, dotnet run is actually a cool thing
Signed-off-by: Macintosh II <95250141+mctaylors@users.noreply.github.com>
This commit is contained in:
parent
501da7b943
commit
a0776ec014
1 changed files with 4 additions and 39 deletions
|
@ -22,54 +22,19 @@ Veemo! I'm a general-purpose bot for moderation (formerly known as Boyfriend) wr
|
||||||
|
|
||||||
[//]: # (if you are reading this, message @mctaylors and ask him to bring back the wiki)
|
[//]: # (if you are reading this, message @mctaylors and ask him to bring back the wiki)
|
||||||
|
|
||||||
## Building & running
|
## Running Octobot
|
||||||
|
|
||||||
<details><summary>Instructions for Linux</summary>
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
1. Install [.NET 7 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/7.0)
|
1. Install [.NET 7 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/7.0)
|
||||||
2. Go to the [Discord Developer Portal](https://discord.com/developers), create a new application and get a bot token. Don't forget to also enable all intents!
|
2. Go to the [Discord Developer Portal](https://discord.com/developers), create a new application and get a bot token. Don't forget to also enable all intents!
|
||||||
3. Open Terminal
|
3. Clone this repository and open `Octobot` folder.
|
||||||
4. Clone this repository and open `Octobot` folder.
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/LabsDevelopment/Octobot
|
git clone https://github.com/LabsDevelopment/Octobot
|
||||||
cd Octobot
|
cd Octobot
|
||||||
```
|
```
|
||||||
5. Build Octobot using `dotnet` and open `bin\Debug\net7.0` folder.
|
4. Run Octobot using `dotnet` with `BOT_TOKEN` variable.
|
||||||
```
|
```
|
||||||
dotnet build
|
dotnet run BOT_TOKEN='ENTER_TOKEN_HERE'
|
||||||
cd bin\Debug\net7.0
|
|
||||||
```
|
```
|
||||||
6. Create a `BOT_TOKEN` environment variable with a bot token from Discord Developer Portal and run Octobot.
|
|
||||||
```
|
|
||||||
export BOT_TOKEN='ENTER_TOKEN_HERE'
|
|
||||||
./Octobot
|
|
||||||
```
|
|
||||||
|
|
||||||
</details>
|
|
||||||
<details><summary>Instructions for Windows</summary>
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
1. Install [.NET 7 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/7.0)
|
|
||||||
2. Go to the [Discord Developer Portal](https://discord.com/developers), create a new application and get a bot token. Don't forget to also enable all intents!
|
|
||||||
3. Open PowerShell
|
|
||||||
4. Clone this repository and open `Octobot` folder.
|
|
||||||
```
|
|
||||||
git clone https://github.com/LabsDevelopment/Octobot
|
|
||||||
cd Octobot
|
|
||||||
```
|
|
||||||
5. Build Octobot using `dotnet` and open `bin/Debug/net7.0` folder.
|
|
||||||
```
|
|
||||||
dotnet build
|
|
||||||
cd bin/Debug/net7.0
|
|
||||||
```
|
|
||||||
6. Create a `BOT_TOKEN` environment variable with a bot token from Discord Developer Portal and run Octobot.
|
|
||||||
```
|
|
||||||
$ENV:BOT_TOKEN='ENTER_TOKEN_HERE'
|
|
||||||
.\Octobot.exe
|
|
||||||
```
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue