Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some amount of rent #53

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DISCORD_BOT_CLIENT_ID=
DISCORD_BOT_TOKEN=
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

*.zkey
*.wasm
.env

tree.json
sample_proof.json
sample_proof.json
17 changes: 17 additions & 0 deletions frontend/cabal-bot/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Discord Bot
2 things must happen for the BOT to be deployed succesfully:
- The commands must be deployed
- The bot must be running

## Local Bot Development
- [Click "New Application"](https://discord.com/developers/applications)
- Go to the "Bot" tab & copy the token
- Go to OAuth2 > General & copy the client id
- Add these to your .env file
- Start running the bot with a command of your choice from package.json
- Create an invite link for the bot
- ![[Discord]](./assets/oauth2_permissions.png)
- Create a Discord server
- Open the invite link & select which server (guild) you want to add the bot to
- Do `npx tsx cabal-bot/deploy.ts --guildId <guildId>` to deploy the slash commands

## Discord client

All commands should be run out of the parent folder.
Expand Down
Binary file added frontend/cabal-bot/assets/oauth2_permissions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
278 changes: 0 additions & 278 deletions frontend/cabal-bot/bot.js

This file was deleted.

Loading