PizzaCord is a discord bot base written in Typescript with Discord.JS library. It's very friendly and easy to use. It even has a speech recognition commands!
Node >= 16.9.0
npm >= 7.21.1
It's very easy to setup. Just clone and install all necessary packages and later let's create and modify .env file (just copy .env.example and delete .example extension). You have to assign valid Discord Bot Token on TOKEN
variable (You can find it here: https://discord.com/developers/applications) and choose prefix for Chat and Speech commands with language of Speech Recognition.
After it, you are able to start your application with pm run start
or yarn run start
and use your bot! Check for help command for get list of all commands.
- Easy Way to Add Custom Commands
- Automatically Adding Custom Commands to help Command
- Working Speech Recognition! (Better to use without Krispy in voice settings)
- Simple Music Bot with Queue
- Ready User Class with Standard Function (e.g. mute, ban, kick, info...)
Go to src/messages/chatMessages.ts
file and inside HandleChatMessages
function add your custom command with:
BotClient.AddCommand('command', msg => {
msg.channel.send(`:gear: It's your custom command!`)
}, 'Command description for help command')
Inside you can put anything you want.
Go to src/messages/voiceMessages.ts
file and inside HandleVoiceMessages
function add your custom command with:
BotSpeech.AddCommand('command', (msg) => {
BotVoice.SendMessage(`You said: ${msg.content}`)
}, 'Command description for help command')
Inside you can put anything you want.
There are some basic User functions in src/classes/user/
which you can use
Project is under GNU General Public License v3.0. You can read more there: www.gnu.org