Комментарии:
Now the Russian-speaking discord servers is a bastard habitat.discord server does not play any role.only from the occupancy of the bastard himself
ОтветитьDiscord disappointed. There are a bunch of characters of different sorts. There are not only characters sitting in the discord itself, there are also the persons serving the discord itself (that is, this is the technical support of the discord itself and everyone connected with it). This discord is praised from all sides. This is partly true, but there is a downside to this discord. Which few people talk about. Being in this discord can be fraught for some. Better think twice. Is it worth going to this discord? And what do you need from this discord?
Pros:
1) can get caught in places, but not always a normal team for communication on different topics;
2) passing raids in games that cannot be passed without communication, even if you try;
3) designed for cooperative games;
Minuses:
1) in the discord there is no "confidentiality" from the word at all .;
2) different types of characters can be caught in the discord (criminals, hackers, rich characters, humorists and characters who don't care about everything and the technical support of the discord itself), as well as young people who are not quite adequate .;
3) the attendants of the discord itself who follow the discord itself do not follow their own rules from the word at all. (Technical support and everyone who is associated with the discord).
4) in discord, only "selected" characters can scold someone, swear at someone, and so on. Otherwise, they will mix the whole discord with shit in the literal sense of the word.
5) communication with a friend on the discord is disclosed by the hackers themselves and the discord service personnel. The secrecy of correspondence is not respected at all.
6) if you start swearing with someone, then his defenders who have nothing to do with swearing will crawl out, and the persecution will start from their side, and after that absolutely the entire discord is connected.
7) hackers and "knocked down on their heads" (they can and will pretend to be) comedians begin to look for people via the Internet to annoy them at home. Seeing a discord blows their heads completely.
8) in discord, not only children, but also adults (pretending to be fools) take part in this.
SO FOLLOW WHAT YOU SAY AND TO WHOM YOU SPEAK.
PS: at the moment, there is no need to be present in the discord. There is a certain society that has its own laws and rules at the moment. They will mix anyone with shit. either you (the group united) with shit will mix or do not knowing who at its discretion).
P.S: this is a kind of group that found its own cozy little world in discord and choose new ones and evaluate them, then they draw conclusions, and then the consequences.
"Cozy little world"
Here we are talking about the Russian language discord.
Russian Federation (RF)
Russian Discord Problem
can you make a video on how to keep your bot online 24/7
ОтветитьThe ` ` is called ticks i think Yes i am pretty sure
ОтветитьIts giving me an error..
bot.commands.get('m').execute(message, args);
^
TypeError: Cannot read property 'execute' of undefined
Thank god your using a switch statements I saw someone use if and else it was absolute cancer
ОтветитьcommandFiles is not defilned, help please
ОтветитьTypeError: Cannot read property 'set' of undefined
at Object.<anonymous> (D:\Discord Bot OFFT\index.js:15:18)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
let botMsg = await message.channel.send("〽️ Pinging")
botMsg.edit({ embed: {
title: "📶 Ping",
description: [
"**Server**: `" + (botMsg.createdAt - message.createdAt) + "ms`",
"**API**: `" + Math.round(client.ping) + "ms`",
"**Uptime**: `" + msToTime(client.uptime) + "`"
].join("\n"),
color: config.color,
footer: { text: "Requested by " + message.author.tag, icon_url: message.author.displayAvatarURL },
timestamp: new Date()
}}).catch(() => botMsg.edit("🆘 An unknown error occurred. Do I have permission? (Embed Links)"));
}
,function msToTime(ms){
days = Math.floor(ms / 86400000); // 24*60*60*1000
daysms = ms % 86400000; // 24*60*60*1000
hours = Math.floor(daysms / 3600000); // 60*60*1000
hoursms = ms % 3600000; // 60*60*1000
minutes = Math.floor(hoursms / 60000); // 60*1000
minutesms = ms % 60000; // 60*1000
sec = Math.floor(minutesms / 1000);
let str = "";
if (days) str = str + days + "d";
if (hours) str = str + hours + "h";
if (minutes) str = str + minutes + "m";
if (sec) str = str + sec + "s";
return str;
I just put a const { message } = require('discord.js') and it actually work with the command handler
Edit: i just puted at ping.js
I don't thinks it is really smart to show your token
ОтветитьMy trash bot dooesntttt go onlinee
Ответитьwhen I run with the cmd I get "cannot read property 'Client' of undefinied". Help me
Ответитьhow to install this?
ОтветитьWhen i type the command it doesn't respond
Ответитьim getting error module_not_found
ОтветитьI have a command:
!start
Bot sends some text:
then user sends:
(some text without prefix)
So my question is how do I call a function after the !start command and have access to the Word sent by the user. Like the fight bot.
I get an error when loading and also I get errors in my command files that args is an unused declaration.
ОтветитьWhat theme are you using on Visual Studio Code?
Ответитьmay i ask what theme do you use ? because mine doesnt look as good and im trying to make vs code look more appealing
Ответитьanyone know whats wrong with this?
name:'Info',
description: "Helps with infomation",
execute(message, args){
case :"info"
if(args[1] === 'version';{
Hey my bot accepts many prefixes like i have kept my prefix as = but it also accepts -, +, >, <, how do i fix this?
ОтветитьIs there any way I could write commands on a console and the bots responds correctly to those commands?
Ответитьwhy do i feel like he is depressed
Ответитьhow do i make a help?
Ответитьthe command handler isnt working somehow it doesnt give me any errors but the bot doesnt replies to the commands please help
ОтветитьWhenever I run node . terminal says
const fs = require ('fs');
^
SyntaxError: Identifier 'fs' has already been declared
i'm not sure what i'm doing wrong if anyone could help me that would be great!
const commandFiles = fs.readdirSync('./commands/').filter(file => file.endsWith('.js'));
^
TypeError: fs.readdirSync is not a function
Help me pls
The switch(args[0]) section is unnecessary. You'd have to update it every time you add a new command.
Do this instead:
const command = bot.commands.get(args[0]);
if(command){
command.execute(message, args);
}
else {
message.reply(`The command ${args[0]} wasn't recognized.`);
}
Now you don't have to update anything if you make new commands. They'll work as long as you add them to your commands structure
I haven't tried using Discord.Collection, myself, so if commands.get() throws an error instead of returning null/undefined, then do it like this:
try {
const command = bot.commands.get(args[0]);
command.execute(message, args);
}
catch (error){
message.reply(`The command ${args[0]} wasn't recognized.`);
}
Btw if you want it to only answer when you use the prefix do if(!message.content.startsWith (PREFIX)) return; before the switch command worked for me also change PREFIX with the name of the const your prefix is in
ОтветитьBefore saying its fake.. actually follow the tutorial and do it RIGHT bc it works
ОтветитьFaker. Got loads of errors went to a coding server and its not even valid javascript acording to 2 persons. >:(
ОтветитьThe back slash quotations you were mentioning are called "backticks"
Ответитьis cmder good? i got a warning virus
Ответитьa
Ответить"and its just going to.... crash" xD i caught the error right as you left the visual studio screen. nice video tho :)
Ответитьhow about making site monitors? Like webscraping but anytime the webscraper detects anything it sends it to the server
Ответитьv11
v12
?
SyntaxError: Unexpected token 'case' ?
ОтветитьWhat would the code for kicking look using the command handler, I tried doing something but it keep there was an error?
Ответитьhelp bot.commands.get('rules').execute(message, args);
^
TypeError: Cannot read property 'execute' of undefined
bot is not defined :DD ?
Ответитьbtw does this not work with embeds? i've had problems with embeds it doesnt work
ОтветитьWhat about async functions? how do you make this work with stuff like axios? That's the main thing im struggling with...
Ответитьwhat if you need to use some libraries, like jimp? do you need to require it in the separate file, or index.js?
Ответитьit does work for me
Ответитьim getting this error please help
index.js:73
Bot.commands.get('Clear').execute(message, args);
^
ReferenceError: message is not defined
nvm fixed it
thx for the vid btw but PLEASE make the permissions video