Skip to content

Discord Bot Base written in Typescript with Speech Recognition and custom commands.

Notifications You must be signed in to change notification settings

Xxsource98/PizzaCord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PizzaCord

What is PizzaCord?

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!

Requiremets

Node >= 16.9.0
npm >= 7.21.1

Setup

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.

Functions

  • 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...)

How to Add Commands

Chat Message:

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.

Speech Message:

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

License

Project is under GNU General Public License v3.0. You can read more there: www.gnu.org

About

Discord Bot Base written in Typescript with Speech Recognition and custom commands.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages