Skip to content

josephworks/josephbot

Repository files navigation

JosephBot

Getting Started

  1. Run npm install to get the NPM Libraries
  2. Create a .env file using the example below
  3. Run ./update.sh

Environmental Variables

Here is an example of a .env file.

TOKEN=OTA0MjE3OTM3MzYyMTY5OTM3.Gqgt-h.kql03Sx07c8Y0Q_yujlc18Sp6Cu1FDExNIBBXA
CLIENT_ID=904217937362169937
GUILD_ID=892995246168887316
OWNER_ID=275808021605777409
PREFIX=!
MONGO_URI=mongodb://192.168.1.11
MONGO_DATABASE_NAME=JosephBot
OPENAI_ORG=org-4P2pAOTwwBnPOb3MIpyBKFLi
OPENAI_API_KEY=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

Usages

TOKEN: Used to authenticate with the Discord API. You can get a token from https://discord.com/developers

CLIENT_ID: The ID of the bot. This is required for deleting commands when the bot starts so it can replace them with new commands and not create duplicates.

GUILD_ID: This was hardcoded and allows for Joseph's anime updates to go to Joseph's Server (https://discord.gg/josephs)

OWNER_ID: Used to give permission to the /eval command and the >ban/unban commands for the shared channel

PREFIX: The prefix is used for non-slash commands, also called chat commands.

MONGO_URI: The connection string for the MongoDB Database. This is very important.

MONGO_DATABASE_NAME: This defines the name of the MongoDB Database.

OPENAI_API_KEY: This is the OpenAI key that is used for the /gpt command.

About

JosephBot is Joseph's Discord Bot written in TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •