A Discord Toolbox built with Modules APIs that provide access to listing, sales, and collection data from your favorite NFT Marketplaces!

Overview

module-discord-toolbox

Click here to add the module-discord-toolbox to your server.

WARNING: Make sure to not give the discord bot any important roles/permissions in the server. The bot is meant to only be able to read messages (commands) and send messages (respond to commands). If the bot asks for more permissions, it is possible that the bot is comprimised. Treat the bot as a user, do not give it advanced permissions.

Bot Commands

Currently, the module discord toolbox supports the following commands:

  • ~help
    • Displays help screen
  • ~collection [collection name]
    • Used to get collection info such as the website, twitter, and more.
  • ~stats [collection name]
    • Used to get collection stats such as the volume, number of owners, floor price, and more.

Contribution

We welcome contributions and additions to the Module Discord toolbox. As the Module API develops, we plan to expand the toolbox. If there are any commands you would like to see, please fork this repository. View the guide on contributing to projects.

Below you will find information about how the project is structured.

Events

Trigger actions on a new event by adding a new file that has the same name as a specific event name defined in the event section of the documentation.

To properly initialize the event, this file has to be added to the event directory you specified in the configuration file of the bot: config.ts.

Example of Event: Ready

Ready.ts

import { Client } from '../Client';
import { Logger } from '../utils/Logger';
import { BotEvent } from '../types';

export default class Ready implements BotEvent {
    public client: Client;

    constructor(client: Client) {
        this.client = client;
    }

    public async run(): Promise<void> {
        Logger.info('Execute an action when the Ready event is triggered');
    }
}

Adding Commands

Execute commands when a specific keyword including the command prefix has been sent in a Discord channel.

To properly initialize the command, this file has to be added to the command directory you specified in the configuration file of the bot: config.ts.

Example of Command: Ping

Ping.ts

import { Message } from 'discord.js';
import { Command } from '../Command';
import { BotClient } from '../types';

export default class Ping extends Command {
    constructor(client: BotClient) {
        super(client, {
            name: 'ping',
            description: 'Pings the bot.',
            category: 'Information',
            usage: client.settings.prefix.concat('ping'),
            cooldown: 1000,
            requiredPermissions: ['SEND_MESSAGES']
        });
    }

    public async run(message: Message): Promise<void> {
        await super.respond(message.channel, 'Pong!');
    }
}

Running

To run the bot, first create an application on the Discord developer portal. Then copy the .env.example and rename it into .env. A proper .env file should look like this:

.env

BOT_TOKEN=RANDOMTOKENYOURECEIVEDFROMTHEDEVELOPERPORTAL

After everything is configured, you can run the bot locally by executing the yarn start command.

Documentation

During development, refer to the documentation served by discord.js.

License

MIT

You might also like...

Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Jan 3, 2023

An open-source Discord bot built with Discord.JS & TypeScript

An open-source Discord bot built with Discord.JS & TypeScript

🤖 Hans - Discord Bot Discord Bot build with Discord.JS, TypeScript, and lots of ❤️ Invite hans to your server You can invite the bot here 🔗 . It's u

Nov 15, 2022

SpotLight is a web app which uses spotify developer APIs and lists your most listened songs, albums, artists and genres.

SpotLight is a web app which uses spotify developer APIs and lists your most listened songs, albums, artists and genres.

Dec 31, 2022

Aeona is a multi-purpose discord bot ready to skill up and boost up your Discord server! It has an State of the Art AI chatbot to make sure you never feel bored!

Aeona | Chatbot Aeona is an ever-growing multipurpose bot; primarily a fun chatbot you can converse with, but also showcases a wide range of fun comma

Jan 9, 2023

Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Welcome to Co-Pilot Bot repo! 👋 🤖 Co-Pilot (All-in-one Discord Bot) Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot

Nov 11, 2022

A custom API handler template made by myself for all my future APIs and the community :)

Custom Express API handler Template A custom API handler template made by myself for all my future APIs and the community :) Features simple yet effic

Dec 20, 2022

DownTube is a free to use - Content downloader service that works upon YouTube based open source APIs. It is developed and handled by M30.

DownTube is a free to use - Content downloader service that works upon YouTube based open source APIs. It is developed and handled by M30.

🚀 DownTube 3.1.7 DownTube is a free to use - Content downloader service that works upon YouTube based open source APIs. It is developed and handled b

Sep 5, 2022

Reference video calling application using Dolby.io Communications APIs.

Dolby.io Communications Video Call React App Video Call App The application available in this repository demonstrates the capabilities of Dolby.io's v

Jan 2, 2023

Opensea sniper bot for NFT collections

opensea-sniper-bot Installation git clone https://github.com/opensea-bots/opensea-sniper-bot.git cd ./opensea-sniper-bot npm install Usage You can al

Dec 27, 2021
Owner
API's to make the NFT world more accessible. By @RaynLabs
null
The best Discord bot and server listing site of the future.

Ghosty Lists An open source project to list all the awesome bot of discord and servers. Quick Mention Please do not claim this as yours when you are f

null 5 Sep 24, 2022
Play your favorite playlist with rexom

rexom ?? Play your favorite playlist with rexom ?? ?? Requirements. Make Your own discord bot from here make sure you have Git, VS Code, nodejs in yur

DevelopersSupportAR 35 Dec 25, 2022
Discord Neura - a Discord bot framework built on discord.js

Discord Neura Description Discord Neura is a Discord bot framework built on discord.js. Features Command Handler, Arguments, Preconditions and Listene

Discord Neura 3 Mar 23, 2022
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022
An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules.

Multiguild-Waitingroom-v13 An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules. It is m

Tomato6966 17 Dec 11, 2022
A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on websites!

discord-web-api A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on

InvalidLenni 2 Jun 28, 2022
Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Remoklify 3 Mar 20, 2022
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
Denky is a multipurpose Discord bot used in +3000 servers. Built with Node.js, TypeScript and discord.js.

?? Denky Bot Denky is a brazilian Discord bot, built with Node.js, TypeScript and discord.js. ⚙️ Self hosting ⚠️ Support will not be provided for self

Denky Labs 19 Dec 26, 2022
Eclipse is a multipurpose Discord bot. Built with Node.js, TypeScript and discord.js.

?? Eclipse Bot Eclipse is a brazilian Discord bot, built with Node.js, TypeScript and discord.js. ?? Self-Hosting ⚠️ Support will not be provided for

Eclipse labs 14 Dec 15, 2022