Skip to content

🤖 An example discord bot that utilizes TypeScript and discord.js as its core.

License

Notifications You must be signed in to change notification settings

Demircivi/DiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiscordBot

Application

Table Of Contents

About

This repository contains a Discord example bot that consists of several commands:

Command Description
-avatar Displays the avatar of mentioned user
-hi, -hello Bot says hello
-minecraft, -mc Shows the server details of the given host(optional, default is: minecraft.emredemircivi.com) and port(optional, default is: 25565)
-purge, -delete, -clear Deletes specified amount of messages from the channel

Dependencies Used

Installation

⚠️ Make sure you've NPM and Node.js installed.

Open a terminal window and clone the repository. After cloning the repository change your directory to the repository directory.

Configuration

Open up the config.json file located in src/config directory in your favorite text editor and put your Discord bot token to the token field then save the file.

Installing Dependencies

Install project dependencies by executing the following command:

npm install

We're done with installing dependencies.

Launching The Project

Development Mode

If you're going to develop the project in your local environment you can type the following command to run the project in the development mode so when there is a change in your code, the application will restart automatically:

npm run watch

Production Mode

Type the following command to start the project in production mode:

npm run start

License

MIT