Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yest #4

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

settings.json
config.json
thanks.json
quotes.json
node_modules
75 changes: 62 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Public Bot and Support Server!
# Public Bot and Support Server!

<a href="https://discord.gg/hsmU2c7mVa"><img src="https://discord.com/api/guilds/773668217163218944/widget.png?style=banner2"></a>

Expand All @@ -7,29 +7,53 @@
First of all, thanks for using this Source Code, it was and is a ton of work to create and maintain it!
If you find any errors please create a issue from <a href="https://github.com/BestGamersH/Multipurpose-Discord-Bot/issues">Here</a>

also this bot will run better on replit or any luinix vm

##Please do not remove credit of our development!

# Installation Guide 🔥

## ✅ Hosting Requirements

<details>
<summary>Click to expand</summary>

* [nodejs](https://nodejs.org) version 18
* [python](https://python.org) version 3.10 or higher, to install the database `enmap` (better-sqlite3)
* a VPS would be adviced, so you don't need to keep your pc/laptop/raspi 24/7 online! [click here for a debian setup](https://github.com/Tomato6966/Debian-Cheat-Sheet-Setup/wiki/)
* [visual studio code](https://visualstudio.microsoft.com/downloads/) latest version, Make sure to select "Desktop development with C++" which should install the necessary components for Node.js native modules.
* [Nodejs](https://nodejs.org) version 18
* [Discord.js](https://discord.js.org/) version 13.6.0 or higher
* Latest version `npm install discord.js@latest`
* Version 13 `npm install discord.js@13`
* [Python](https://python.org) version 3.10 or higher, to install the database `enmap` (better-sqlite3)
* A VPS would be adviced, so you don't need to keep your pc/laptop/raspi 24/7 online! [click here for a debian setup](https://github.com/Tomato6966/Debian-Cheat-Sheet-Setup/wiki/)
* A VM Would also take up less resourceses on your computer
* [Virtualbox](https://www.virtualbox.org/)
* [Workstation Player Evaluation](https://www.vmware.com/products/workstation-player/workstation-player-evaluation.html)
* [Visual studio code](https://visualstudio.microsoft.com/downloads/) latest version, Make sure to select "Desktop development with C++" which should install the necessary components for Node.js native modules.
* A Text/Code editor
* [Notpad++](https://notepad-plus-plus.org/)
* [Sublime Text](https://www.sublimetext.com/)
* [IntelliJ IDEA](https://www.jetbrains.com/idea/)


</details>

## 🤖 Bot Requirements

<details>
<summary>Click to expand</summary>
<summary>Click to expand</summary>
To install the Multipurpose Discord Bot:

1. Download the [Source Code]()
* either by: `git clone https://github.com/BestGamersH/Multipurpose-Discord-Bot.git`
* or by downloading it as a zip from the releases or a branch

Download the source code from [GitHub](https://github.com/BestGamersH/Multipurpose-Discord-Bot.git). You can either clone the repository with the following command:

`git clone https://github.com/BestGamersH/Multipurpose-Discord-Bot.git`

Or, you can download the ZIP archive from the latest release or a specific branch.

Make sure your system meets the following requirements:

* At least 2GB of RAM
* At least 700MB of free disk space (1GB is recommended)

If you have downloaded the source code and met the system requirements, you can install and start the bot.
</details>

## 🎶 Music Requirements
Expand Down Expand Up @@ -100,6 +124,8 @@ If you find any errors please create a issue from <a href="https://github.com/Be
4. You can adjust some settings in the other `./botconfig/*.json` Files, **BUT PLEASE __KEEP__ MY CREDITS & ADS!** This is the only way on how my hard work is "revenued"
5. Now start the bot by typing opening a cmd in that folder and type: `node index.js` or `npm start`
* If you don't want to keep the terminal open or if you're on linux, check out [pm2 (and my tutorial)](https://github.com/Tomato6966/Debian-Cheat-Sheet-Setup/wiki/4-pm2-tutorial) and type: `pm2 start --name Bot_Name index.js`
* [PM2](https://www.npmjs.com/package/pm2) - Npm Package
* [PM2 Offical site](https://pm2.keymetrics.io/)

</details>

Expand All @@ -126,17 +152,40 @@ If you find any errors please create a issue from <a href="https://github.com/Be
* `consumer_secret` you can get from: [twitter Developers](https://developer.twitter.com)
* `access_token` you can get from: [twitter Developers](https://developer.twitter.com)
* `access_token_secret` you can get from: [twitter Developers](https://developer.twitter.com)

4. Optionally, you can change the API key for AIChat by creating your own url at Brainshop.ai: https://brainshop.ai/. This lets you set the name and other details of your AI.

</details>

## ✨ Commands Examples

## SUPPORT me AND MILRATO DEVELOPMENT
<details>

> You can always Support me by inviting one of me **own Discord Bots**
<summary>Click to expand</summary>
This is a list of some of the commands that you can use with the Multipurpose Discord Bot.

| Command | Description |
|---|---|
| `!help` | Displays a list of all the available commands. |
| `!ping` | Pings the bot and returns its response time. |
| `!daily` | Gives you your daily money. |
| `!setup-aichat` | Setup the AI chat modual. |
| `!setup-welcome` | Setup the welcome message. |


# Credits
</details>


## SUPPORT me AND MILRATO DEVELOPMENT

> You can always Support me by inviting one of me **own Discord Bots**

## Credits

> If consider using this Bot, make sure to credit me
> This bot was made by https://github.com/Tomato6966 All credits to him, I just fixed the errors in it didn't code it fully.
> Contributors
* Hotsuop - Edited code to make it work from small errors
* BestGamersHK - Did like everthing you see here
* Tomato6966 For coding the whole thing

94 changes: 47 additions & 47 deletions botconfig/config.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
{
"token": "token",
"prefix": "prefix",
"ownerIDS": [
"ur id"
],
"fnbr": "c2838e00ed0e79724166cbaa4e1b540b180aa8976f18f381ada54d50b24b64da6e01e7703d6bdabd704366e66659c31fa2025eeaab46c2ccecd64010c8f2baa2",
"fortnitetracker": "d54f8936-5737-42ee-a362-143ad2d78169",
"memer_api": "BocPQoK08R2",
"status": {
"text": "Watching {guildcount} Servers, with {membercount} Members | Invite Me!",
"text2": "{prefix}help",
"type": "PLAYING",
"url": "https://idk.idk"
},
"clientsettings": {
"nodes": [
{
"host": "host",
"port": port,
"password": "pass"
}
]
},
"spotify": {
"clientSecret": "053469ffeb3844079fab734ebf3090c2",
"clientID": "bf5ee2a72bae40ffadc71a47280e5ff9"
},
"settings": {
"COMMENT": "time_delay 0 === insta leave",
"leaveOnEmpty_Channel": {
"enabled": true,
"time_delay": 30000
},
"LeaveOnEmpty_Queue": {
"enabled": true,
"time_delay": 30000
},
"selfDeaf": true
},
"lyricssettings": {
"lyrics_finder": true,
"ksoft_api": {
"use_this_instead": true,
"api_key": "AIzaSyAAg3GHxipuyDz7KsCAv434yoFT56TR9LQ"
}
}
}
"token": "",
"prefix": "!",
"ownerIDS": [
"281403338275291136"
],
"fnbr": "c2838e00ed0e79724166cbaa4e1b540b180aa8976f18f381ada54d50b24b64da6e01e7703d6bdabd704366e66659c31fa2025eeaab46c2ccecd64010c8f2baa2",
"fortnitetracker": "d54f8936-5737-42ee-a362-143ad2d78169",
"memer_api": "BocPQoK08R2",
"status": {
"text": "Watching {guildcount} Servers, with {membercount} Members | Invite Me!",
"text2": "{prefix}help",
"type": "PLAYING",
"url": "https://idk.idk"
},
"clientsettings": {
"nodes": [
{
"host": "0.0.0.0",
"port": 2333,
"password": "youshallnotpass"
}
]
},
"spotify": {
"clientSecret": "053469ffeb3844079fab734ebf3090c2",
"clientID": "bf5ee2a72bae40ffadc71a47280e5ff9"
},
"settings": {
"COMMENT": "time_delay 0 === insta leave",
"leaveOnEmpty_Channel": {
"enabled": true,
"time_delay": 30000
},
"LeaveOnEmpty_Queue": {
"enabled": true,
"time_delay": 30000
},
"selfDeaf": true
},
"lyricssettings": {
"lyrics_finder": true,
"ksoft_api": {
"use_this_instead": true,
"api_key": "AIzaSyAAg3GHxipuyDz7KsCAv434yoFT56TR9LQ"
}
}
}
2 changes: 1 addition & 1 deletion commands/⌨️ Programming/coliru.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ module.exports = {

}
}
//-CODED-BY-bestgamershk_-//
//-CODED-BY-bestgamershk-//
2 changes: 1 addition & 1 deletion commands/⌨️ Programming/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ module.exports = {

}
}
//-CODED-BY-bestgamershk_-//
//-CODED-BY-bestgamershk-//
2 changes: 1 addition & 1 deletion commands/⌨️ Programming/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ module.exports = {

}
}
//-CODED-BY-bestgamershk_-//
//-CODED-BY-bestgamershk-//
2 changes: 1 addition & 1 deletion commands/⌨️ Programming/httpstatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ module.exports = {

}
}
//-CODED-BY-bestgamershk_-//
//-CODED-BY-bestgamershk-//
2 changes: 1 addition & 1 deletion commands/⌨️ Programming/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ module.exports = {

}
}
//-CODED-BY-bestgamershk_-//
//-CODED-BY-bestgamershk-//
2 changes: 1 addition & 1 deletion commands/⌨️ Programming/npmpkgsize.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ module.exports = {

}
}
//-CODED-BY-bestgamershk_-//
//-CODED-BY-bestgamershk-//
44 changes: 44 additions & 0 deletions commands/⌨️ Programming/shortenurl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
const axios = require('axios');

module.exports = {
name: 'shortenurl',
category: '🔗 Utilities',
aliases: [],
usage: 'shortenurl [URL]',
description: 'Generates a shortened URL for the provided link.',
type: 'bot',

run: async (client, message, args, cmduser, text, prefix) => {
try {
const originalUrl = args[0];

if (!originalUrl || !isValidURL(originalUrl)) {
return message.reply('Please provide a valid URL.');
}

// TinyURL API endpoint for shortening URLs
const apiUrl = `https://tinyurl.com/api-create.php?url=${encodeURIComponent(originalUrl)}`;

// Make a GET request to the TinyURL API
const response = await axios.get(apiUrl);

const shortenedUrl = response.data;

// Send the shortened URL as a message
message.channel.send(`Shortened URL: ${shortenedUrl}`);
} catch (error) {
console.error(error);
return message.reply('An error occurred while shortening the URL.');
}
},
};

// Function to validate URL format
function isValidURL(url) {
try {
new URL(url);
return true;
} catch (error) {
return false;
}
}
4 changes: 2 additions & 2 deletions commands/⚙️ Settings/addbotchat.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ module.exports = {
};
/**
* @INFO
* Bot Coded by bestgamershk_ | https://discord.gg/bestgamershk
* Bot Coded by bestgamershk | https://discord.gg/rone
* @INFO
* Work for BestGamersHK | discord.gg/bestgamershk
* Work for BestGamersHK | discord.gg/rone
* @INFO
* Please mention him, when using this Code!
* @INFO
Expand Down
4 changes: 2 additions & 2 deletions commands/⚙️ Settings/adddj.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ module.exports = {
};
/**
* @INFO
* Bot Coded by bestgamershk_ | https://discord.gg/bestgamershk
* Bot Coded by bestgamershk | https://discord.gg/rone
* @INFO
* Work for BestGamersHK | discord.gg/bestgamershk
* Work for BestGamersHK | discord.gg/rone
* @INFO
* Please mention him, when using this Code!
* @INFO
Expand Down
4 changes: 2 additions & 2 deletions commands/⚙️ Settings/addmoney.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ module.exports = {
};
/**
* @INFO
* Bot Coded by bestgamershk_ | https://discord.gg/bestgamershk
* Bot Coded by bestgamershk | https://discord.gg/rone
* @INFO
* Work for BestGamersHK | discord.gg/bestgamershk
* Work for BestGamersHK | discord.gg/rone
* @INFO
* Please mention him, when using this Code!
* @INFO
Expand Down
4 changes: 2 additions & 2 deletions commands/⚙️ Settings/afk.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ module.exports = {
}
/**
* @INFO
* Bot Coded by bestgamershk_ | https://github?.com/BestGamersHK/discord-js-lavalink-Music-Bot-erela-js
* Bot Coded by bestgamershk | https://github?.com/BestGamersHK/discord-js-lavalink-Music-Bot-erela-js
* @INFO
* Work for BestGamersHK | discord.gg/bestgamershk
* Work for BestGamersHK | discord.gg/rone
* @INFO
* Please mention him, when using this Code!
* @INFO
Expand Down
4 changes: 2 additions & 2 deletions commands/⚙️ Settings/afkmusic.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ module.exports = {
}
/**
* @INFO
* Bot Coded by bestgamershk_ | https://github?.com/BestGamersHK/discord-js-lavalink-Music-Bot-erela-js
* Bot Coded by bestgamershk | https://github?.com/BestGamersHK/discord-js-lavalink-Music-Bot-erela-js
* @INFO
* Work for BestGamersHK | discord.gg/bestgamershk
* Work for BestGamersHK | discord.gg/rone
* @INFO
* Please mention him, when using this Code!
* @INFO
Expand Down
4 changes: 2 additions & 2 deletions commands/⚙️ Settings/defaultautoplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ module.exports = {
}
/**
* @INFO
* Bot Coded by bestgamershk_ | https://github?.com/BestGamersHK/discord-js-lavalink-Music-Bot-erela-js
* Bot Coded by bestgamershk | https://github?.com/BestGamersHK/discord-js-lavalink-Music-Bot-erela-js
* @INFO
* Work for BestGamersHK | discord.gg/bestgamershk
* Work for BestGamersHK | discord.gg/rone
* @INFO
* Please mention him, when using this Code!
* @INFO
Expand Down
Loading