Skip to content

Latest commit

 

History

History
36 lines (33 loc) · 2.27 KB

README.md

File metadata and controls

36 lines (33 loc) · 2.27 KB

Petcord Bot

This is a C# Discord bot made with the Discord.Net API wrapper.
This bot was custom made for the Petcord Discord server.
The bot's main functionality is interfacing with a Google sheet (note: this is not their actual sheet, just a copy of it that was made at the time of this repo creation) and adding the ability to directly and easily use/update the sheet via commands in Discords.

Example of adding a player and their pets the Google sheet, and then displaying them:
demonstration

Building/Running

Building/running this should only be done for educational purposes, since you wont be able to actually use this yourself. You'd need to have access to the Google sheet.

Via the command line

  • Install .NET & .NET Core
  • Clone this repository with
    git clone https://github.com/0x464e/petcord-bot
  • Setup the config.json
  • Navigate yourself to the folder with the .csproj file
    cd Petcord/Petcord
  • Run dotnet run to run the program
    or dotnet build to build the program

With Visual Studio

  • Clone this repository with
    git clone https://github.com/0x464e/petcord-bot
  • Open the solution (.sln) with Visual Studio
  • Hit run/debug or build from the Build menu

Deploying

See the documentation for deploying .NET Core apps.
Quick example for deploying a self contained installation:

  • Install .NET & .NET Core
  • Clone this repository with
    git clone https://github.com/0x464e/petcord-bot
  • Run dotnet publish -c Release -r RID where RID is your desired runtime identifier
    e.g.
    dotnet publish -c Release -r linux-x64
    dotnet publish -c Release -r win-x64
  • chmod +x the binary if needed and ensure the config.json file is found in the same directory as the binary