Skip to content

gemdegem/discord-price-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Price Update Bot

This Discord bot updates voice channel names based on the latest price information from an API. It's designed to work on specific servers and update channels that match a certain naming pattern.

image

Installation

Prerequisites

Setup Instructions

  1. Clone the repository

    git clone [https://github.com/gemdegem/discord-price-bot.git]
    cd [discord-price-bot]
  2. Install dependencies

    git clone [https://github.com/gemdegem/discord-price-bot.git]
    cd [discord-price-bot]
  3. Set up the .env file Create a .env file in the root of your project and add the following line:

    BOT_TOKEN=your_discord_bot_token_here
    
  4. Configuration API URL The default API URL is set to https://api.xeggex.com/api/v2/ticker/Symbol%2FUSDT. You need to replace Symbol%2FUSDT with the actual symbol of the cryptocurrency or asset you want to track.

Channel Name Regex Update the regexPattern in the script to match the channel name format you have set up in your Discord. For example, if you are tracking Bitcoin prices, and your channel name starts with BTC:, set the regex pattern to /^BTC:.*/.

Allowed Servers Modify the allowedServers array to include the names of the servers where the bot is permitted to update channel names. Only servers listed here will be processed by the bot.

Invite the Bot to Your Server

To get started with the Discord bot on your server, follow these steps:

Step 1: Invite the Bot Create link in discord developer platform.

Step 2: Create and Configure the Voice Channel Create a Voice Channel named according to the asset you are tracking. For example, if you are tracking Bitcoin, name the channel BTC:. This name needs to match the REGEX set in index.js.

Configure Channel Permissions:

Go to the settings of the newly created voice channel by right-clicking on it and selecting "Edit Channel". image

Navigate to the Permissions tab. image

For the @everyone role, find the Connect permission and set it to "❌" (deny). image

Add your bot's role, Price tracker (or whatever you named) , and set the Connect permission for this role to "✅" (allow). image

Step 3: Activation Allow up to 1 minute for the bot to start synchronizing and updating the channel name based on the configured intervals.

Contact Information

If you encounter any issues or have questions, feel free to reach out through the following channels:

Discord: joethebiggie0xchad

Twitter: Twitter: Joe_0xChad

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published