All Documentation!

BB-DBotBits GitHub Library Docs

LicenceGetting StartedStandard Replies
Reply EmbedsRadio stationsSpam Rate
Check for URL spamPurge Messagestickets
RulesAll CommandsXP Leveling

BB-DBotBits NPM Library Docs

LicenceGetting StartedStandard Replies
Reply EmbedsRadio stationsSpam Rate
Check for URL spamPurge Messagestickets
RulesAll CommandsXP Leveling

Subsections of All Documentation!

/Credits command

GitHub Version

If you want to remove credits, buy me a coffee. If you have not donated to the project you may not remove any credits.

You can donate to us by clicking the buy me a coffee in our sidebar.

To turn off the credits. This can be found inside settings located in /BB-DBotBits/settings

BB-DBotBits License (v1.0)
Copyright © 2024 ByteBots, Coffee is My Only Friend (CIMOF)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, merge, publish, distribute, and/or sublicense copies of the Software, subject to the following conditions:

Attribution & Credits:
All copies or substantial portions of the Software must include a credit feature that can be invoked using the /credits command. The credit message must be enabled by default and may only be turned off or modified if a donation is made to the project. The default credit message should indicate that the software is supported by BB-DBotBits and provide information on how users can support the project.

Commercial Use:
The Software may be used for commercial purposes only if a donation is made to the project. Without a donation, use of the Software for commercial gain is not permitted.

Modification & Redistribution:
Redistribution and use of the Software, with or without modification, are permitted provided that the conditions above are met. Modified versions must also retain this license and the original credit feature, or include an appropriate credit mechanism with similar prominence.

Donation-Based Exceptions:
A donation grants additional rights, such as the ability to disable or modify the credit message or use the Software for commercial purposes. Donations can be made at: https://buymeacoffee.com/coffeeismyonlyfriend.

No Warranty:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

/Credits command

NPM Version

If you want to remove credits, buy me a coffee. If you have not donated to the project you may not remove any credits.

You can donate to us by clicking the buy me a coffee in our sidebar.

To turn off the credits. This can be found inside settings located in /BB-DBotBits/settings

BB-DBotBits License (v1.0)
Copyright © 2024 ByteBots, Coffee is My Only Friend (CIMOF)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, merge, publish, distribute, and/or sublicense copies of the Software, subject to the following conditions:

Attribution & Credits:
All copies or substantial portions of the Software must include a credit feature that can be invoked using the /credits command. The credit message must be enabled by default and may only be turned off or modified if a donation is made to the project. The default credit message should indicate that the software is supported by BB-DBotBits and provide information on how users can support the project.

Commercial Use:
The Software may be used for commercial purposes only if a donation is made to the project. Without a donation, use of the Software for commercial gain is not permitted.

Modification & Redistribution:
Redistribution and use of the Software, with or without modification, are permitted provided that the conditions above are met. Modified versions must also retain this license and the original credit feature, or include an appropriate credit mechanism with similar prominence.

Donation-Based Exceptions:
A donation grants additional rights, such as the ability to disable or modify the credit message or use the Software for commercial purposes. Donations can be made at: https://buymeacoffee.com/coffeeismyonlyfriend.

No Warranty:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ALL COMMANDS!

GitHub Version

This is all current avaliable commands!

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

Important

Needed permissions:

If you are runing all commands Admin/Mod Role would be best

const { discordReply } = require('./BB-DBotBits/discordReplies.js'); // Replies
const { discordTickets } = require('./BB-DBotBits/discordTickets.js'); // discordTickets
const { discordReverse } = require('./BB-DBotBits/discordReverse.js'); // discordReverse
const { discordRadio } = require('./BB-DBotBits/discordRadio.js'); // discordRadio
const { discordLogin, token } = require('./BB-DBotBits/discordHandler.js'); //discordLogin
const { checkSpamRate } = require('./BB-DBotBits/checkSpamRate'); //discordLogin
const { discordPurgeCommands} = require('./BB-DBotBits/discordPurge'); //purge commands setup
const { settings: discordRules } = require('./BB-DBotBits/discordRules'); //Rules
const { discordCheckSpam } = require('./BB-DBotBits/discordCheckSpam'); //Check for URLS
const { discordReplyEmbed } = require('./BB-DBotBits/discordReplyEmbed.js'); // Embed
const { discordXP } = require('./BB-DBotBits/discordXP.js'); // XP Level system

// Starts the XP System
discordXP();

//Checks for URLS in messages
discordCheckSpam()

//Displays rules check settings for more info
discordRules();

//simple reply
discordReply('helloworld', 'ohhh so it starts');


//Embed capability
  discordReplyEmbed(
    'announcenew', // wakeword (slash command)
    'Important Update', // title of the embed
    'We have some exciting new features coming soon! Stay tuned.', // body of the embed
    'This is a footer text', // footer text
    'https://example.com/update-image.png', // optional image URL
    'https://example.com/more-info' // optional URL to make the title clickable
);  

discordPurgeCommands();
//opens a ticket in a new section with permisisons.
discordTickets();

//Spam rate
checkSpamRate();

// Call the radio function with the station URL and thumbnail URL
discordRadio('radioStationName', 'streamURL', 'logoOfradioStationURL.jpg');
Warning

Please note the below commands should only be called once:

discordTickets(); 
checkSpamRate(); 
discordCheckSpam(); 
discordRules(); 
discordXP();

ALL COMMANDS!

NPM Version

This is all current avaliable commands!

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

Important

Needed permissions:

If you are runing all commands Admin/Mod Role would be best

const { discordReply } = require('./node_modules/bb-dbotbits/discordReplies.js'); // Replies
const { discordTickets } = require('./node_modules/bb-dbotbits/discordTickets.js'); // discordTickets
const { discordReverse } = require('./node_modules/bb-dbotbits/discordReverse.js'); // discordReverse
const { discordRadio } = require('./node_modules/bb-dbotbits/discordRadio.js'); // discordRadio
const { discordLogin, token } = require('./node_modules/bb-dbotbits/discordHandler.js'); //discordLogin
const { checkSpamRate } = require('./node_modules/bb-dbotbits/checkSpamRate'); //discordLogin
const { discordPurgeCommands} = require('./node_modules/bb-dbotbits/discordPurge'); //purge commands setup
const { settings: discordRules } = require('./node_modules/bb-dbotbits/discordRules'); //Rules
const { discordCheckSpam } = require('./node_modules/bb-dbotbits/discordCheckSpam'); //Check for URLS
const { discordReplyEmbed } = require('./node_modules/bb-dbotbits/discordReplyEmbed.js'); // Embed
const { discordXP } = require('./node_modules/bb-dbotbits/discordXP.js'); // XP Level system

// Starts the XP System
discordXP();

//Checks for URLS in messages
discordCheckSpam()

//Displays rules check settings for more info
discordRules();

//simple reply
discordReply('helloworld', 'ohhh so it starts');


//Embed capability
  discordReplyEmbed(
    'announcenew', // wakeword (slash command)
    'Important Update', // title of the embed
    'We have some exciting new features coming soon! Stay tuned.', // body of the embed
    'This is a footer text', // footer text
    'https://example.com/update-image.png', // optional image URL
    'https://example.com/more-info' // optional URL to make the title clickable
);  

discordPurgeCommands();
//opens a ticket in a new section with permisisons.
discordTickets();

//Spam rate
checkSpamRate();

// Call the radio function with the station URL and thumbnail URL
discordRadio('radioStationName', 'streamURL', 'logoOfradioStationURL.jpg');
Warning

Please note the below commands should only be called once:

discordTickets(); 
checkSpamRate(); 
discordCheckSpam(); 
discordRules(); 
discordXP();

Check for URL spam

GitHub Version

Important

Needed permissions:

Admin/Mod Role would be best

We have included a URL checker. If a message contains a URL this will tell the user off. If the user posts more than 3 URLS’s the user will be kicked.

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

To use, is very simple, include the library then call it:

const { discordCheckSpam } = require('./BB-DBotBits/discordCheckSpam');

discordCheckSpam();

To allow your URL please go to the library an open settings/settings.js Change the following lines

const allowedURL = false; //Change to true
const website = 'https://bytebots.net'; //change your URL

Check for URL spam

NPM Version

Important

Needed permissions:

Admin/Mod Role would be best

We have included a URL checker. If a message contains a URL this will tell the user off. If the user posts more than 3 URLS’s the user will be kicked.

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

To use, is very simple, include the library then call it:

const { discordCheckSpam } = require('./node_modules/bb-dbotbits/discordCheckSpam');

discordCheckSpam();

To allow your URL please go to the library an open settings/settings.js Change the following lines

const allowedURL = false; //Change to true
const website = 'https://bytebots.net'; //change your URL

Getting Started!

GitHub Version

Our GitHub repository offers a simple and effective way to create bots using straightforward function calls. Designed for ease of use, this library helps you build bots quickly without getting bogged down in complex code. Whether you’re a beginner or an experienced developer, you’ll find everything you need to get your bot up and running in no time.

Needed specs

Node | Node Documentation

NPM

Create a Discord Developer Account and create your first bot

I will be making some Youtube video’s soon to help with the previous steps.

Getting Started with our Library:

To get started, just follow these easy steps:

  1. Download the Repository
    Begin by downloading our JavaScript bot repository. You can find it on our GitHub page. Click here to access the repo, where you can clone or download the files.

  2. Install Dependencies
    After downloading, navigate to the folder in your terminal and run:

    npm install
  3. Enjoy making bots super fast

Make a token.env file in the root directory of your project and put the below line in it:

token=YOURTOKENGOESHERE
  1. Enjoy making bots super fast

Modify the settings.js file which is found in BB-DBotBits/Settings

  1. Enjoy making bots super fast

To help you get started lets make a simple responder.

const { discordReply } = require('./BB-DBotBits/discordReplies.js'); // Import Replies

discordReply('helloworld', 'Hello!'); //Replies to "helloworld" with "Hello!"

Getting Started!

NPM Version

Our NPM repository offers a simple and effective way to create bots using straightforward function calls. Designed for ease of use, this library helps you build bots quickly without getting bogged down in complex code. Whether you’re a beginner or an experienced developer, you’ll find everything you need to get your bot up and running in no time.

Needed specs

Node | Node Documentation

NPM

Create a Discord Developer Account and create your first bot

I will be making some Youtube video’s soon to help with the previous steps.

Getting Started with our Library:

To get started, just follow these easy steps:

  1. Download the Repository
    Begin by downloading our BB-DBotsLibrary

    npm install bb-dbotbits
  2. Enjoy making bots super fast

Make a token.env file in the root directory of your project and put the below line in it:

token=YOURTOKENGOESHERE
  1. Enjoy making bots super fast

Modify the settings.js file which is found in /node_modules/bb-dbotbits/Settings

  1. Enjoy making bots super fast

To help you get started lets make a simple responder.

const { discordReply } = require('./node_modules/bb-dbotbits/discordReplies.js'); // Import Replies

discordReply('helloworld', 'Hello!'); //Replies to "helloworld" with "Hello!"

Licence

MD BB-DBotBits License (v1.2)

Copyright © 2024 ByteBots, Coffee is My Only Friend (CIMOF)


Permission Grant

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to use, copy, modify, merge, and publish the Software, subject to the following conditions:


1. Attribution & Credits

  • All copies or substantial portions of the Software must include a credit feature that can be invoked using the /credits command.
  • The credit message must be enabled by default and may only be turned off or modified if a “Supporter” tier is purchased through the project’s Buy Me a Coffee page.
  • The default credit message is coded into the library.

2. Commercial Use

  • The Software may be used for commercial purposes only if a “Developer” tier is purchased through the project’s Buy Me a Coffee page.
  • Without purchasing the Developer tier, any use of the Software for commercial gain is strictly prohibited.

3. No Redistribution

  • Redistribution of the Software, in original or modified form, is not permitted.
  • This license only grants permission to use, copy, modify, and publish the Software.
  • Any attempt to distribute the Software without explicit written consent from the authors is strictly prohibited.

4. Donation-Based Exceptions

  • Purchasing the “Supporter” tier grants the right to disable or modify the credit message for non-commercial uses.
  • Purchasing the “Developer” tier grants the right to use the Software for commercial purposes.
  • Donations can be made at: Buy Me a Coffee - Coffee is My Only Friend.

5. No Warranty

THE SOFTWARE IS PROVIDED “AS IS,” WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

NPM Licence

MD BB-DBotBits License (v1.2)

Copyright © 2024 ByteBots, Coffee is My Only Friend (CIMOF)


Permission Grant

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to use, copy, modify, merge, and publish the Software, subject to the following conditions:


1. Attribution & Credits

  • All copies or substantial portions of the Software must include a credit feature that can be invoked using the /credits command.
  • The credit message must be enabled by default and may only be turned off or modified if a “Supporter” tier is purchased through the project’s Buy Me a Coffee page.
  • The default credit message is coded into the library.

2. Commercial Use

  • The Software may be used for commercial purposes only if a “Developer” tier is purchased through the project’s Buy Me a Coffee page.
  • Without purchasing the Developer tier, any use of the Software for commercial gain is strictly prohibited.

3. No Redistribution

  • Redistribution of the Software, in original or modified form, is not permitted.
  • This license only grants permission to use, copy, modify, and publish the Software.
  • Any attempt to distribute the Software without explicit written consent from the authors is strictly prohibited.

4. Donation-Based Exceptions

  • Purchasing the “Supporter” tier grants the right to disable or modify the credit message for non-commercial uses.
  • Purchasing the “Developer” tier grants the right to use the Software for commercial purposes.
  • Donations can be made at: Buy Me a Coffee - Coffee is My Only Friend.

5. No Warranty

THE SOFTWARE IS PROVIDED “AS IS,” WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Privacy

Last updated: 26th October 2024

This Privacy Policy outlines the types of personal information that is received and collected by bytebots.net and how it is used.


Information We Collect

  • Google Ads: We use Google Ads to display advertisements on our site. Google may use cookies to serve ads based on a user’s prior visits to our site or other sites on the internet. Users can opt out of personalized advertising by visiting Google Ads Settings.

  • Google Analytics: We use Google Analytics to track user activity on our site. This service collects information such as IP addresses, browser types, pages visited, and the time and date of visits. This data is used to analyze website traffic and improve user experience. Learn more about how Google Analytics processes data by visiting Google’s Privacy Policy.

Personal Information

We do not collect personal information from users for account creation. Any personal information provided via email (e.g., feedback, inquiries) will be kept confidential and will not be shared with third parties.

Cookies

Our website may use cookies to enhance the user experience. Users can configure their web browsers to refuse cookies or alert them when cookies are being sent. Note that some parts of the site may not function properly if cookies are disabled.

Our site may contain links to third-party websites. We do not have control over these websites and are not responsible for their content or privacy policies. We encourage users to read the privacy policies of any other sites that collect personal information.

Changes to This Privacy Policy

We may update this Privacy Policy from time to time. We will notify you about significant changes in the way we handle personal information by sending a notice to the primary email address specified in your account or by placing a prominent notice on our site.

Contact Information

If you have any questions about this Privacy Policy, please contact us at:

Email: info@bytebots.net

Purge messages!

GitHub Version

Important

Needed permissions:

best to use a mod role anything higher is bonus

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

We have included settings into this. It does have a limited rate of 100 messages though be mindful of that. We will be looking into increasing this in the future.

Two lines of code make this work

const { discordPurgeCommands} = require('./BB-DBotBits/discordPurge');

discordPurgeCommands();

Usage

In Discord type

/purgemessages 100

You can use any number up to 100 in the channel you called it in.
/purgeusermessages username

This will delete all messages from a user you entered.

Purge messages!

NPM Version

Important

Needed permissions:

best to use a mod role anything higher is bonus

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

We have included settings into this. It does have a limited rate of 100 messages though be mindful of that. We will be looking into increasing this in the future.

Two lines of code make this work

const { discordPurgeCommands} = require('./node_modules/bb-dbotbits/discordPurge');

discordPurgeCommands();

Usage

In Discord type

/purgemessages 100

You can use any number up to 100 in the channel you called it in.
/purgeusermessages username

This will delete all messages from a user you entered.

Radio stations

GitHub Version

Warning

Please note that this library is provided with the assumption that you are the legal owner or operator of a radio station or have the proper authorization to use it. We do not assume any responsibility for any misuse of this library, including but not limited to violations of copyright laws. Users are solely responsible for ensuring that their use of the library complies with all applicable laws and regulations, including intellectual property rights.

Important

It is inportant to note that this requires Node version 18 or above

Needed permissions:

VoiceStates, message

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

Link the library. Assuming the library is in BB-DBotBits:

const { discordRadio } = require('./BB-DBotBits/discordRadio.js');

To use the radio station first include the library then call it using 3 arguments:

wakeword strealUrl stationimage

discordRadio('stationName', 'https://yoururlstream.mp3', 'stationsImage');

We will use Heart as an example (Please do not use this as we have no assosiation with Heart radio at all. This is for demo purposes ONLY):

const { discordRadio } = require('./BB-DBotBits/discordRadio.js');


discordRadio('heart', 'https://icecast.thisisdax.com/HeartLondonMP3', 'https://www.globalplayer.com/assets/track-placeholders/heart.jpg');

or for better readability you could layout like this

discordRadio('heartlondon', 
'https://icecast.thisisdax.com/HeartLondonMP3', 
'https://www.globalplayer.com/assets/track-placeholders/heart.jpg');

Once you have completed all the steps. In our example the command to call the bot into a voice channel is /heart

discordRadio('heartlondon' ....);

Radio stations

NPM Version

Warning

Please note that this library is provided with the assumption that you are the legal owner or operator of a radio station or have the proper authorization to use it. We do not assume any responsibility for any misuse of this library, including but not limited to violations of copyright laws. Users are solely responsible for ensuring that their use of the library complies with all applicable laws and regulations, including intellectual property rights.

Important

It is inportant to note that this requires Node version 18 or above

Needed permissions:

VoiceStates, message

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

Link the library. Assuming the library is in BB-DBotBits:

const { discordRadio } = require('./node_modules/bb-dbotbits/discordRadio.js');

To use the radio station first include the library then call it using 3 arguments:

wakeword strealUrl stationimage

discordRadio('stationName', 'https://yoururlstream.mp3', 'stationsImage');

We will use Heart as an example (Please do not use this as we have no assosiation with Heart radio at all. This is for demo purposes ONLY):

const { discordRadio } = require('./node_modules/bb-dbotbits/discordRadio.js');


discordRadio('heart', 'https://icecast.thisisdax.com/HeartLondonMP3', 'https://www.globalplayer.com/assets/track-placeholders/heart.jpg');

or for better readability you could layout like this

discordRadio('heartlondon', 
'https://icecast.thisisdax.com/HeartLondonMP3', 
'https://www.globalplayer.com/assets/track-placeholders/heart.jpg');

Once you have completed all the steps. In our example the command to call the bot into a voice channel is /heart

discordRadio('heartlondon' ....);

Replies

GitHub Version

Important

Needed permissions:

message permissions

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

You can now use

discordReply('WakeWord', 'Reply');

If you want your bot to reply to “!hello”, this is how it would be laid out:

const { discordReply } = require('./BB-DBotBits/discordReplies.js');

discordReply('!Hello', 'Hello there how are you today?');

Looking for embeds?

Replies

NPM Version

Important

Needed permissions:

message permissions

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

You can now use

discordReply('WakeWord', 'Reply');

If you want your bot to reply to “!hello”, this is how it would be laid out:

const { discordReply } = require('./node_modules/bb-dbotbits/discordReplies.js');

discordReply('!Hello', 'Hello there how are you today?');

Looking for embeds?

Replies With Embeds

GitHub Version

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

first lets link the library, lets assume the library is in BB-DBotBits:

const { discordReplyEmbed } = require('./BB-DBotBits/discordReplyEmbed.js');

You can now use

discordReplyEmbed('wakeword', 'tite', 'body', 'footer', 'imageURL', 'titleURL');

If you want your bot to reply to “/hello”, this is how it would be laid out:

discordReplyEmbed(
    'hello', //wakeword
    'Hey There', // title of the embed
    'Hey there I am an embed.', // body of the embed
    'ByteBots', // footer text
    'https://bytebots.net/image.png', // image url
    'https://bytebots.net' // optional URL to make the title clickable
);

If you wan to skip an embed section please just leave that bit blank for example we are going to not use a url image:

discordReplyEmbed(
    'hello', //wakeword
    'Hey There', // title of the embed
    'Hey there I am an embed.', // body of the embed
    'ByteBots', // footer text
    '', // image url
    'https://bytebots.net' // optional URL to make the title clickable
);

You can pick and choose what you want to include

Important

Needed permissions:

message permissions

Replies With Embeds

NPM Version

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

first lets link the library, lets assume the library is in BB-DBotBits:

const { discordReplyEmbed } = require('./node_modules/bb-dbotbits/discordReplyEmbed.js');

You can now use

discordReplyEmbed('wakeword', 'tite', 'body', 'footer', 'imageURL', 'titleURL');

If you want your bot to reply to “/hello”, this is how it would be laid out:

discordReplyEmbed(
    'hello', //wakeword
    'Hey There', // title of the embed
    'Hey there I am an embed.', // body of the embed
    'ByteBots', // footer text
    'https://bytebots.net/image.png', // image url
    'https://bytebots.net' // optional URL to make the title clickable
);

If you wan to skip an embed section please just leave that bit blank for example we are going to not use a url image:

discordReplyEmbed(
    'hello', //wakeword
    'Hey There', // title of the embed
    'Hey there I am an embed.', // body of the embed
    'ByteBots', // footer text
    '', // image url
    'https://bytebots.net' // optional URL to make the title clickable
);

You can pick and choose what you want to include

Important

Needed permissions:

message permissions

Rules!

GitHub Version

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

Important

Needed permissions:

Manage user roles. Messages Please ensure you edit the settings in settings/settings.js and assign a rule and rules channel

const { settings: discordRules } = require('./BB-DBotBits/discordRules'); //Rules

discordRules();

Once you have completed this section. Please make a rules.txt file in your root directory with your rules. If you fail to do this it will install a rules.txt file on it’s own with basic rules.

Rules!

NPM Version

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

Important

Needed permissions:

Manage user roles. Messages Please ensure you edit the settings in settings/settings.js and assign a rule and rules channel

const { settings: discordRules } = require('./node_modules/bb-dbotbits/discordRules'); //Rules

discordRules();

Once you have completed this section. Please make a rules.txt file in your root directory with your rules. If you fail to do this it will install a rules.txt file on it’s own with basic rules.

settings

GitHub Version

I have tried to simplify settings as much as possible here. Below is the settings file found inside

/BB-DBotBits/settings

Please ensure you adjust to your server specs. I will be making more settings in time.

/*
 _ __        _       ____        _       ____                      
| __ ) _   _| |_ ___| __ )  ___ | |_ ___|  _ \ ___ _ __   ___  ___ 
|  _ \| | | | __/ _ \  _ \ / _ \| __/ __| |_) / _ \ '_ \ / _ \/ __|
| |_) | |_| | ||  __/ |_) | (_) | |_\__ \  _ <  __/ |_) | (_) \__ \
|____/ \__, |\__\___|____/ \___/ \__|___/_| \_\___| .__/ \___/|___/
       |___/                                      |_|              
                    https://bytebots.net 
                   Please adjust as needed
              
*/


/*
Welcome to the settings section.
*/


// Bot Status
const showStatus = true;
let botOnlineStatus = 'online' // You can set this to 'idle', 'dnd', or 'invisible'
let botStatusTxt = 'Created using BB-DBotBits' // The status you want the bot to display
let botDoing = 4 // 0 (Playing), 1 (Streaming), 2 (Listening), 3 (Watching), 4 (blank), 5 (Competing)



/*
Please enter role ID's you with to see tickets, I have used the same role over and
over again. Please update all 3 and add as many as you need with , at the end apart 
from the last id
Some servers start with 0 and JS hates that so please ensure it's enclosed in ""
*/


let ticketAccess = [
    '0928340928340982308',
    '8349058349850349854',
    '8908490328409238402'
];

/* This section is for the rules 
The role ID and Channel id need to be entered below in order for the rules to work.
The role ID will set the role people are assinged upon accepting the rules
Channel ID is where the rules will be posted.
*/

let rulesSettings = [
    {
        roleId: '12960823232178335776',      
        channelID: '1297203243434307462788'  
    }
];

const showCredits = false; /* Please do not remove this line... If you do want to remove it
Please donate to the project: https://buymeacoffee.com/coffeeismyonlyfriend */

module.exports = { ticketAccess, rulesSettings, showCredits, botOnlineStatus, botStatusTxt, botDoing, showStatus};

Settings

NPM Version

I have tried to simplify settings as much as possible here. Below is the settings file found inside

/node_modules/bb-dbotbits/settings

Please ensure you adjust to your server specs. I will be making more settings in time.

/*
 _ __        _       ____        _       ____                      
| __ ) _   _| |_ ___| __ )  ___ | |_ ___|  _ \ ___ _ __   ___  ___ 
|  _ \| | | | __/ _ \  _ \ / _ \| __/ __| |_) / _ \ '_ \ / _ \/ __|
| |_) | |_| | ||  __/ |_) | (_) | |_\__ \  _ <  __/ |_) | (_) \__ \
|____/ \__, |\__\___|____/ \___/ \__|___/_| \_\___| .__/ \___/|___/
       |___/                                      |_|              
                    https://bytebots.net 
                   Please adjust as needed
              
*/


/*
Welcome to the settings section.
*/


// Bot Status
const showStatus = true;
let botOnlineStatus = 'online' // You can set this to 'idle', 'dnd', or 'invisible'
let botStatusTxt = 'Created using BB-DBotBits' // The status you want the bot to display
let botDoing = 4 // 0 (Playing), 1 (Streaming), 2 (Listening), 3 (Watching), 4 (blank), 5 (Competing)



/*
Please enter role ID's you with to see tickets, I have used the same role over and
over again. Please update all 3 and add as many as you need with , at the end apart 
from the last id
Some servers start with 0 and JS hates that so please ensure it's enclosed in ""
*/


let ticketAccess = [
    '0928340928340982308',
    '8349058349850349854',
    '8908490328409238402'
];

/* This section is for the rules 
The role ID and Channel id need to be entered below in order for the rules to work.
The role ID will set the role people are assinged upon accepting the rules
Channel ID is where the rules will be posted.
*/

let rulesSettings = [
    {
        roleId: '12960823232178335776',      
        channelID: '1297203243434307462788'  
    }
];

const showCredits = false; /* Please do not remove this line... If you do want to remove it
Please donate to the project: https://buymeacoffee.com/coffeeismyonlyfriend */

module.exports = { ticketAccess, rulesSettings, showCredits, botOnlineStatus, botStatusTxt, botDoing, showStatus};

Spam Limit!

GitHub Version

We have included our spam rate limiter which is set to 5 messages in 10 seconds. If a user reaches that they are warned 3 times. If they reach a 3 limit warning they will be kicked from the server. This does not ignore admin’s as sometimes they go rouge 😉. If a user is higher rank than the bot then it can not kick obviously.

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

To use, is very simple, include the library then call it:

const { checkSpamRate } = require('./BB-DBotBits/checkSpamRate');

checkSpamRate();
Important

Needed permissions:

Admin/Mod Role would be best

Spam Limit!

NPM Version

We have included our spam rate limiter which is set to 5 messages in 10 seconds. If a user reaches that they are warned 3 times. If they reach a 3 limit warning they will be kicked from the server. This does not ignore admin’s as sometimes they go rouge 😉. If a user is higher rank than the bot then it can not kick obviously.

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

To use, is very simple, include the library then call it:

const { checkSpamRate } = require('./node_modules/bb-dbotbits/checkSpamRate');

checkSpamRate();
Important

Needed permissions:

Admin/Mod Role would be best

Tickets!

GitHub Version

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

Settings

inside BB’s library you will see “settings.js” Please update this as needed you can include as many Guild id’s as you need.

To get the guild id’s you can:

  • Right-click the server on the left-hand side of Discord
  • Click Server Settings ScreenShot1 ScreenShot1
  • Click Roles ScreenShot2 ScreenShot2
  • Find the role you want to include ScreenShot3 ScreenShot3
  • Click the three dots (…)
  • Select Copy Role ID ScreenShot4 ScreenShot4

Paste the guild ID’s

Inside settings.js we have created a simple Array(list) please include your id’s in there

'id001',
'id002'

Include as many as you need.

Now it’s time to link it in your project. It’s just two lines:

const { discordTickets } = require('./BB-DBotBits/discordTickets.js');

discordTickets();
Important

Needed permissions:

It’s best just to use an admin or mod role here

Tickets!

NPM Version

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

Settings

inside BB’s library you will see “settings.js” Please update this as needed you can include as many Guild id’s as you need.

To get the guild id’s you can:

  • Right-click the server on the left-hand side of Discord
  • Click Server Settings ScreenShot1 ScreenShot1
  • Click Roles ScreenShot2 ScreenShot2
  • Find the role you want to include ScreenShot3 ScreenShot3
  • Click the three dots (…)
  • Select Copy Role ID ScreenShot4 ScreenShot4

Paste the guild ID’s

Inside settings.js we have created a simple Array(list) please include your id’s in there

'id001',
'id002'

Include as many as you need.

Now it’s time to link it in your project. It’s just two lines:

const { discordTickets } = require('./node_modules/bb-dbotbits/discordTickets.js');

discordTickets();
Important

Needed permissions:

It’s best just to use an admin or mod role here

XP Leveler

GitHub Version

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

Important

Needed permissions:

Manage user roles. Messages

Please ensure you edit the settings in settings/settings.js and assign decide if you want it to auto level a user after so many users to a different rank. For example “Newies” to Members

const { discordXP } = require('./BB-DBotBits/discordXP.js');

discordXP();

That’s it your done. You now have a XP leveling bot

XP Leveler

NPM Version

Assuming you done all the steps here. You are ready to get started with your fresh new bot.

Important

Needed permissions:

Manage user roles. Messages

Please ensure you edit the settings in settings/settings.js and assign decide if you want it to auto level a user after so many users to a different rank. For example “Newies” to Members

const { discordXP } = require('./node_modules/bb-dbotbits/discordXP.js');

discordXP();

That’s it your done. You now have a XP leveling bot