jamiew / discord-selfie-bot

Discord bot for generating remixes of your profile photo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

glif-selfie-bot

Yet another fun gliftastic bot

requires

  • nodejs 18
  • pnpm
  • discord API token (free)
  • glif API token (free)

Setup/Bot Registration

  1. Register a new bot on Discord Developer Portal. DISCORD_APPLICATION_ID is on the main page; this Application ID is also sometimes called a Client ID. Then go the "Bot" page and click "Reset Token" to get DISCORD_BOT_TOKEN.

Copy .env.example to .env and fill in the values

Lastly, install the bot to your server by adding YOUR_APPLICATION_ID to a URL like:

https://discord.com/api/oauth2/authorize?client_id=[YOUR_APPLICATION_ID]&scope=bot%20applications.commands&permissions=0

This will install bot user who can add slash commands, but not read or post normal messages or do anything else.

To get read/write message permissions, you'll need to enable the various Privileged Gateway Intents in your bot's configuration on the Discord Developer Portal, and then add a permissions mask like so:

https://discord.com/api/oauth2/authorize?client_id=[YOUR_APPLICATION_ID]&scope=bot%20applications.commands&permissions=3072

Running

Install dependencies

pnpm install

To run in development mode, reloading on code changes:

pnpm dev

To run in production mode:

pnpm build
pnpm start

About

Discord bot for generating remixes of your profile photo


Languages

Language:TypeScript 99.2%Language:Shell 0.8%