https://github.com/codemyst/peposad
Discord bot with random stuff.
https://github.com/codemyst/peposad
Last synced: 11 months ago
JSON representation
Discord bot with random stuff.
- Host: GitHub
- URL: https://github.com/codemyst/peposad
- Owner: CodeMyst
- License: mit
- Created: 2021-12-02T18:10:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-09T17:42:23.000Z (almost 2 years ago)
- Last Synced: 2025-03-26T09:12:31.518Z (11 months ago)
- Language: TypeScript
- Size: 117 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# peposad
## setup
* install bun
* run `bun i`
## create bot application
* go to https://discord.com/developers
* create new application
* enable bot
## invite the bot to a server
* go to discord developers dashboard
* go to oauth2 -> url generator
* scopes: bot, applications.commands
* permissions: read messages/view channels, send messages, use slash commands
* copy the url and open in the browser
## create .env.local
* create .env.local
```env
TOKEN=discord bot token
APP_ID=discord application id
SERVER_ID=server id (right click server -> copy id)
SAD_EMOTE=emote, send the emote with a backslash: \:peposad: and copy that here
HAPPY_EMOTE=...
LAUGH_EMOTE=...
PRAY_EMOTE=...
TEXT_CHANNEL=channel id (right click channel -> copy id)
VOICE_CHANNEL=...
```
## register commands
* this needs to be done only once per server or when the commands change (i think)
* run `bun run register_commands.ts`
* commands should now be available in the server (you might need to wait for a bit)
## run the bot
* run `bun run index.ts`