Skip to content

Commit 823faf6

Browse files
committed
The-Bot v4.0.0 migrated to slash commands and added a command called topic
1 parent dbc6cae commit 823faf6

112 files changed

Lines changed: 8928 additions & 4936 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Images/infr.png

-6.04 KB
Binary file not shown.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# The-Bot
22
![The-Bot](./resouces/THE-BOTEDITED.png "The-Bot")
3-
![issues](https://img.shields.io/github/issues/Chandra-sekhar-pilla/The-Bot-v2.0.0)
4-
![forks](https://img.shields.io/github/forks/Chandra-sekhar-pilla/The-Bot-v2.0.0)
5-
![stars](https://img.shields.io/github/stars/Chandra-sekhar-pilla/The-Bot-v2.0.0)
6-
![license](https://img.shields.io/github/license/Chandra-sekhar-pilla/The-Bot-v2.0.0)
7-
![version](https://img.shields.io/badge/Version-2.3.3-green)
3+
![issues](https://img.shields.io/github/issues/Chandra-sekhar-pilla/The-Bot)
4+
![forks](https://img.shields.io/github/forks/Chandra-sekhar-pilla/The-Bot)
5+
![stars](https://img.shields.io/github/stars/Chandra-sekhar-pilla/The-Bot)
6+
![license](https://img.shields.io/github/license/Chandra-sekhar-pilla/The-Bot)
7+
![version](https://img.shields.io/badge/Version-4.0.0-green)
88

99

1010
> The default prefix is "!".
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
module.exports = {
2+
Module: 'Custom Commands',
3+
Description: 'Module which contains custom commands that can be used by the user.',
4+
Commands: [
5+
{
6+
Name: 'debug',
7+
Description: 'Sends a tip to debug your code in unity.',
8+
Syntax: '/debug',
9+
Permission: 'Everyone',
10+
},
11+
{
12+
Name: 'info',
13+
Description: 'Sends the info about the bot.',
14+
Syntax: '/info',
15+
Permission: 'Everyone',
16+
},
17+
{
18+
Name: 'learndjs',
19+
Description: 'Sends few useful links to learn discord.js.',
20+
Syntax: '/learndjs',
21+
Permission: 'Everyone',
22+
},
23+
{
24+
Name: 'learnjs',
25+
Description: 'Sends few useful links to learn javascript.',
26+
Syntax: '/learnjs',
27+
Permission: 'Everyone',
28+
},
29+
{
30+
Name: 'learnunity',
31+
Description: 'Sends few useful links to learn unity.',
32+
Syntax: '/learnunity',
33+
Permission: 'Everyone',
34+
},
35+
{
36+
Name: 'longcode',
37+
Description: 'Sends the pastemyst link which is used to paste your code.',
38+
Syntax: '/longcode',
39+
Permission: 'Everyone',
40+
},
41+
{
42+
Name: 'togglerjs',
43+
Description: 'Send the cdn link of toggler.js.',
44+
Syntax: '/togglerjs',
45+
Permission: 'Everyone',
46+
}
47+
]
48+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const { SlashCommandBuilder } = require('discord.js');
2+
module.exports = {
3+
name: 'debug',
4+
data: new SlashCommandBuilder()
5+
.setName('debug')
6+
.setDescription('A way to debug your code/game in unity.'),
7+
8+
async execute(client, interaction, Discord) {
9+
await interaction.channel.send("If you have a code which isn't working and there are no errors or warnings of such kind use ``Debug.Log()``. This will help you where actually the unknown error is.\nlet's take an example like if you wrote a code of rotating something but after you start or run the code the object is not rotating use ``Debug.Log()`` command at the part where you think the code is not working.This is a nice practise even while in general coding. ~~Even I use this type of commands more~~.\n\n'When you get lost, use Debug.Log()' - BLAME <@341756841576890378> for this quote.")
10+
}
11+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
const { SlashCommandBuilder } = require('discord.js');
2+
3+
module.exports = {
4+
name: 'info',
5+
data: new SlashCommandBuilder()
6+
.setName('info')
7+
.setDescription('sends info about The Atelier server'),
8+
9+
async execute(client, interaction, Discord) {
10+
console.log("yes")
11+
const embedMsg = new Discord.EmbedBuilder()
12+
.setTitle('My info:')
13+
.setColor('#9c0af7')
14+
.addFields([
15+
{ name: 'Name:', value: 'The-Bot' },
16+
{ name: 'Guild Count', value: `${client.guilds.cache.size}` }
17+
])
18+
const row = new Discord.ActionRowBuilder()
19+
.addComponents([
20+
new Discord.ButtonBuilder()
21+
.setLabel('The-Bot')
22+
.setStyle('Link')
23+
.setURL('https://github.com/Chandra-sekhar-pilla/The-Bot-v1.4.0'),
24+
new Discord.ButtonBuilder()
25+
.setLabel('Developer website')
26+
.setStyle('Link')
27+
.setURL('https://the-atelier.ml'),
28+
new Discord.ButtonBuilder()
29+
.setLabel('Invite')
30+
.setStyle('Link')
31+
.setURL('https://discord.com/oauth2/authorize?client_id=852171190696017970&scope=applications.commands%20bot&permissions=8589934591'),
32+
new Discord.ButtonBuilder()
33+
.setLabel('official Discord Server')
34+
.setStyle('Link')
35+
.setURL('https://discord.gg/6Mcy5NpSpH')
36+
])
37+
38+
interaction.reply({ embeds: [embedMsg], components: [row] })
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
1-
const { PermissionsBitField } = require('discord.js');
1+
const { SlashCommandBuilder } = require('discord.js');
22
module.exports = {
3-
slash: false,
43
name: 'discordjs',
5-
description: "Displays the link for learning discord.js ",
6-
aliases: ['discordjs', 'learndjs', 'djs'],
7-
permissions: [PermissionsBitField.Flags.ViewChannel],
8-
syntax: '!learndjs',
9-
execute(client, message, args, Discord) {
4+
data: new SlashCommandBuilder()
5+
.setName("discordjs")
6+
.setDescription("Displays the link for learning discord.js "),
107

8+
async execute(client, interaction, Discord) {
119
const embedMsg = new Discord.EmbedBuilder()
12-
1310
.setColor('#9C27B0')
14-
1511
.setTitle('__Discord.js tutorial links__')
16-
1712
.addFields([
1813
{ name: ' Official Discord.js Guide : ', value: 'https://discordjs.guide' },
1914
{ name: ' Guide by Codelyon : ', value: 'https://anidiots.guide/getting-started/getting-started-long-version ' },
2015
{ name: ' Tutorial series by Codelyon : ', value: 'https://youtube.com/playlist?list=PLbbLC0BLaGjpyzN1rg-gK4dUqbn8eJQq4 ' },
2116
{ name: ' Tutorial series by Worn off keys : ', value: 'https://youtube.com/playlist?list=PLaxxQQak6D_fxb9_-YsmRwxfw5PH9xALe ' }
2217
])
23-
2418
.setThumbnail("https://i.ibb.co/7th2xwt/images.png")
25-
26-
.setFooter({text: 'See github repository of the atelier bot by using !gh command. Enjoy learning Discord-js and make your own custom bot 😃 .'})
27-
28-
message.channel.send({ embeds: [embedMsg] });
19+
.setFooter({ text: 'See github repository of the atelier bot by using !gh command. Enjoy learning Discord-js and make your own custom bot 😃 .' })
20+
interaction.reply({ embeds: [embedMsg] });
2921
}
3022
}
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
const { PermissionsBitField } = require('discord.js');
1+
const { SlashCommandBuilder } = require('discord.js');
22
module.exports = {
3-
slash: false,
43
name: 'learnjs',
5-
aliases: ['js', 'javascript'],
6-
permissions: [PermissionsBitField.Flags.ViewChannel],
7-
description: "Command made for showing JavaScript tutorial links. ",
8-
syntax: '!learnjs',
9-
execute(client, message, args, Discord) {
4+
data: new SlashCommandBuilder()
5+
.setName("learnjs")
6+
.setDescription("Sends useful links to learn javascript"),
107

8+
async execute(client, interaction, Discord) {
119
const embed = new Discord.EmbedBuilder()
1210
.setColor('#DDFF00')
1311
.setThumbnail("https://i.ibb.co/5sy5y5H/javascript-logo.png")
@@ -25,9 +23,7 @@ module.exports = {
2523
{ name: '•You might not need jQuery: ', value: 'http://youmightnotneedjquery.com/ ' },
2624
{ name: '•CodingTrain (tutorials with examples using p5.js): ', value: ' https://www.youtube.com/user/shiffman' }
2725
])
28-
.setFooter({text: "This list does not contain every resource out there because the internet is huge and listing everything down is impossible."})
29-
30-
message.channel.send({ embeds: [embed] });
31-
26+
.setFooter({ text: "This list does not contain every resource out there because the internet is huge and listing everything down is impossible." })
27+
interaction.reply({ embeds: [embed] });
3228
}
3329
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const { SlashCommandBuilder } = require('discord.js');
2+
module.exports = {
3+
name: 'learnunity',
4+
data: new SlashCommandBuilder()
5+
.setName("learnunity")
6+
.setDescription("Displays the link for learning discord.js "),
7+
8+
async execute(client, interaction, Discord) {
9+
const embedMsg = new Discord.EmbedBuilder()
10+
.setColor('#9C27B0')
11+
.setTitle('**Learn C# basics before starting with Unity!**')
12+
.addFields(
13+
[{ name: "Learning the syntax of C# definitely helps when using Unity. Here are some links to get you started!", value: "https://docs.microsoft.com/en-us/dotnet/csharp/ (Microsofts 'Getting Started' Guide on C#)\nhttps://channel9.msdn.com/Series/CSharp-Fundamentals-for-Absolute-Beginners (Teaches you the C# fundamentals)\nhttps://github.com/ossu/computer-science (Not strictly C#, a general open-source education in Computer Science)\n https://www.classcentral.com/report/stanford-on-campus-courses (Publicly available Computer Science courses from Stanford)\n https://codecademy.com/learn/learn-c-sharp (Code Academy course on C#)\n https://learn.unity.com/ (Has great tutorials on using C# with Unity)" }])
14+
.setFooter({ text: `Most programming problems come from not knowing how to use the language - if you haven’t programmed much or you’re not confident about the OOP concepts in your mind, it's useful to understand these before diving into the engine.` })
15+
interaction.reply({ embeds: [embedMsg] });
16+
}
17+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const { SlashCommandBuilder } = require('discord.js');
2+
3+
module.exports = {
4+
name: 'longcode',
5+
data: new SlashCommandBuilder()
6+
.setName("longcode")
7+
.setDescription("sends a link of pastemyst"),
8+
9+
async execute(client, interaction, Discord) {
10+
interaction.reply('Want to send a long code? use pastemyst here is the link\nhttps://paste.myst.rs');
11+
}
12+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const { SlashCommandBuilder } = require('discord.js');
2+
module.exports = {
3+
name: 'togglerjs',
4+
data: new SlashCommandBuilder()
5+
.setName("togglerjs")
6+
.setDescription('sends the cdn link and docs links for toggler.js'),
7+
8+
async execute(client, interaction, Discord) {
9+
interaction.reply("Link for Toggler CDN:\n https://cdn.jsdelivr.net/gh/Chandra-sekhar-pilla/Toggler@main/Toggler.js\n\nToggler Docs:\nhttps://the-atelier.ml/Pages/Toggler/toggler.html")
10+
}
11+
}

0 commit comments

Comments
 (0)