Skip to content

T4NK3R252/Discord.js-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Discord Crypto Bot

A simple Discord bot that can fetch cryptocurrency data from the CoinCap API and display it in a Discord channel. It also includes a help command and a purge command to delete past messages.

Table of Contents

Installation

  1. Clone this repository:
git clone https://github.com/your-username/discord-crypto-bot.git
  1. Install the required packages:
npm install discord.js
npm install fetch
  1. Set you Discord bot token in the '.env' file:
DISCORD_TOKEN=your-bot-token-here

You can obtain a token for your bot from the Discord Developer Portal

  1. Start the bot:
npm start

Usage

The bot responds to commands starting with the ! prefix. The available commands are:

Commands

  • !coin [symbol | 10 | all]: Returns the current price of a cryptocurrency with the given symbol or the top 10/50 cryptocurrencies by market cap.
  • !help: Shows all available commands and how to use them.
  • !purge [number]: Deletes the specified number of messages from the channel.

Contributing

If you want to contribute to this project, please follow these steps:

  1. Fork this repository.
  2. Create a new branch with your changes: git checkout -b my-feature-branch
  3. Make your changes and commit them: git commit -am 'Add some feature'
  4. Push your branch to your fork: git push origin my-feature-branch
  5. Create a new pull request.

License

The project is licensed under the MIT License.

About

Discord bot using the Discord.js V12.0.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published