#development
1 messages ยท Page 526 of 1
How can I extend this to reveal more information of the rejection?
Logger("[UNHANDLED REJECTION] " + (error.stack == undefined ? error : error.stack), "warn");
})```
issue is its constantly spamming my console
i dont think you can, at least i havent been able to either. you have to track the issue yourself by making sure you handle all possible permissions and catch all possible errors
for example always use .send().catch()
its annoying lol
yeah it is
my bot still has that error like once every now and then
and i havent been able to solve it yet
and i also get unknown message sometimes
yeah, pay attention to permissions. what kind of commands does your bot do?
for example, if you're sending embeds, you need the embeds permission
role perms to anything but no is using the bot as its standalone in one server (beta version)
you can try testing all permissions and finding out which ones are missing
:/
its annoying
LOL
it seems to be the guildMemberAdd/Remove but theres no permissions in there
[ USER LEFT ] "Tevezplays655" (ID:"462301170904334345") has left "Discord Bot List (Server ID: 264445053596991498)"
[ WARNING ] [UNHANDLED REJECTION] DiscordAPIError: Missing Permissions
at item.request.gen.end (E:\BotDevelopment\Rxiqi BETA\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:79:15)
at then (E:\BotDevelopment\Rxiqi BETA\node_modules\discord.js\node_modules\snekfetch\src\index.js:215:21)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
Im trying to find where the issue is for permissions
Its spamming the console every few seconds
what does your bot do on guildmemberadd/remove?
does logs
sends a log to the logs channel if it exists
Help me http://pastebin.it/4277/
Pastebin.it is a advanced text storage tool where you can store text, sensitive data and source code for a set period of time.
does it have permissions for the logs channel?
Every event is disabled
does it send embeds?
and its still doing it
nothing its disabled
nopr
Show us your guildMemberLeave event @earnest phoenix
@earnest phoenix
eyw
hmm
const Discord = require("discord.js");
const Logger = require("../functions/log.js");
module.exports = (client, member) => {
Logger(`"${member.user.username}" (ID:"${member.user.id}") has left "${member.guild.name} (Server ID: ${member.guild.id})"`, "userleft");
const logChannel = member.guild.channels.find(c => c.name === client.config.log);
if (!logChannel) {
return Logger(`The guildMemberRemove log channel does not exist in the server named '${client.guilds.get(member.guild.id).name}'`, "warn")
}
if (member === client.user.id) return;
let userleft = new Discord.RichEmbed()
.setTimestamp()
.setTitle(`User Left Server`)
.addField(`User Left: `, `${member.user.tag}`)
.setColor("RANDOM")
.setFooter("User Left Server")
logChannel.send(userleft)
if (member.guild.channels.find(c => c.name === "new-members")) {
let embed = new Discord.RichEmbed()
.setTimestamp()
.addField(`Goodbye,`, `\nWe hope you enjoyed your stay here.\nWe are sorry to see you leave.`)
.setFooter("BETA-MODE ENABLED | Future Feature in v1.7 without this footer.")
member.guild.channels.find(c => c.name === "new-members").send(`<@${member.user.id}>`, embed)
} else {
return;
}
}
@topaz fjord
You might not have perms to send in a channel
EMBED_LINKS ๐ค
Hmm
^^
Now to go through each event enabling them one by one and seeing which causes it
^
if (msg.channel.permissionsFor(msg.guild.me).has(['SEND_MESSAGES', 'EMBED_LINKS']))
msg isn't until guildMemberLeave u weeb
idgaf
OK, so its not the events
its gotta be the main.js file
I think its this client.on('channelCreate', (channel) => {
since i disabled that its completely stopped
so whats the code in it?
It checks for a channel name for the global-chat functions
but it has a checker to see if channel exists if not then return else do the func
show the code
its similar to channeCreate
client.on('channelDelete', (channel) => {
if (channel.type === "dm") return;
if (channel.name === "global-chat-network") {
let embed = new Discord.RichEmbed()
.setAuthor(`Guild Left The Global-Chat Network`, channel.guild.iconURL ? channel.guild.iconURL : client.user.avatarURL)
.setThumbnail(channel.guild.iconURL ? channel.guild.iconURL : client.user.avatarURL)
.addField("Guild Name:", channel.guild.name)
client.channels.filter(c => c.name === 'global-chat-network').map(ch => ch.send(embed))
} else {
return;
}
})
but that seemed to be issue
well yeah, you're sending a message to all guilds that have that channel
how can you be sure other guild's channels have the right permissions?
you need to check for permissions on each guild that you send to
I might make it do a cmd to create its own channel with name
like
r joinGNC
why aint this working
var customprefix = new db.table('Prefix');
var prefixsetting = customprefix.get(message.guild.id, 'Prefix');
if (message.content.indexOf(config.prefix) !== 0 || (message.content.indexOf(prefixsetting) !== 0||!message.content.startsWith("@heavy thistle "))) return;
Error?
it does not do anything when i run a command
Then your if statement is returning false
im tryna test the db part, but the config.prefx is set to -- and wehn i go to use it it does nothing
Console.log the data to make sure it's what you expect
ffs, my args are messed up
ok i fixed my issue
anyone got any idea as to why when using args it uses the command too, but ignores the prefix???
anytime i do --config set prefix --- it return (node:21205) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions in log, but it shouldnt need perms to do anything other than do db in the actually files and send a message saying success
@earnest phoenix code pls
is that success Message an embed
@tight heath ye why?
@night imp i have sliced the prefix off, and i want to slice the rest of the command off but it doesnt seem to want to
because embeds need a permission
Code pls
omg, BOTS IN THIS SEVRER HAVE THAT PERM
๐คฆ
const args = msg.content.slice(prefix.length).trim().split(/ +/g);```
i think it has something to do with that
YES
omg
all bots are doing embeds
.
and my bot sent the embed so its not that ๐คฆ
Ok, so it seems to be this server its havving issues with IDK why
now don't scream at me you ungrateful
every command works, but for commands such as rock,paper,scissors, it picks up the rps part of the command and what ever you say
smh
ermmm ```fix
[ CRITICAL ] [UNCAUGHT EXCEPTION] TypeError: Cannot read property 'id' of undefined
at module.exports (E:\BotDevelopment\Rxiqi BETA\events\userUpdate.js:5:52)
at Client.client.on (E:\BotDevelopment\Rxiqi BETA\rxiqi.js:147:84)
at emitTwo (events.js:126:13)
at Client.emit (events.js:214:7)
at PresenceUpdateHandler.handle (E:\BotDevelopment\Rxiqi BETA\node_modules\discord.js\src\client\websocket\packets\handlers\PresenceUpdate.js:24:14)
at WebSocketPacketManager.handle (E:\BotDevelopment\Rxiqi BETA\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:103:65)
at WebSocketConnection.onPacket (E:\BotDevelopment\Rxiqi BETA\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (E:\BotDevelopment\Rxiqi BETA\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
at WebSocket.onMessage (E:\BotDevelopment\Rxiqi BETA\node_modules\ws\lib\event-target.js:120:16)
at emitOne (events.js:116:13)
????
you got rid of the prefix tho
i have this for args
var args = message.content.slice(config.prefix.length).trim().split(/ +/g);
if it helps
Wait do you want to keep it?
erm
const args = msg.content.slice(prefix.length).trim().split(/ +/g);```
this is starting again
[ USER LEFT ] "BimJohny" (ID:"394063500483362816") has left "Discord Bot List (Server ID: 264445053596991498)"
[ WARNING ] [UNHANDLED REJECTION] DiscordAPIError: Missing Permissions
at item.request.gen.end (E:\BotDevelopment\Rxiqi BETA\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:79:15)
at then (E:\BotDevelopment\Rxiqi BETA\node_modules\discord.js\node_modules\snekfetch\src\index.js:215:21)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
its supposed to have prefix, as then args doesnt include the prefix too
but i need to slice out the command part too, so for example; my prefix is gs!, and a command is called gs!roll. I need to cut out the roll part too
ye, i have slice too, and its needed
hmmmm
if you dont need the command, just do msg.split(" ")
wait what?
const args = msg.content.slice(prefix.length).trim().split(" ");
so like that?
sooo:
and you'll have ["gs!roll","arg1","arg2"]
yeah
okidoki
@quartz kindle yeh, that doesn't work as it isnt a function, needs to be msg.content.split(" "): doesnt it?
yes
okidokili
@quartz kindle that doesnt work mate
i asked someone else and thye gave me this: js let args = message.content.trim().split(/ +/g).slice(1);
what they sent me works perfectly
it is
i told you what what i sent you did, if that is not what you want, then modify it accordingly
message.content.split(" ");
``` that makes the message content into an array @quartz kindle
args is considered the text after the command word
So - slicing off the first property in the array would make it work
it gives him the args he wants, up to him how he wants to access them
i told him what he would have if he did that
i was going to say something like "if you dont want the command itself, just remove the first item", but i thought it would be self-evident
Just a matter of someone not knowing how arrays and strings work etc @quartz kindle ๐
what you did wasnt exactly helpful tho
how wasnt it helpful lol, i told you exactly what you would get if you did it
https://hastebin.com/ihasezesah.js
Ok so this is the one causing the Missing Permissions SPAM
Lacking permissions....
For what though
Might be for not having permissions to send to the log channel? @earnest phoenix
I wouldn't know otherwise
why do you have 3 ifs lmao
hello can somebody please explain to me how to use this please as i really want to put it on my bot https://www.npmjs.com/package/node-internet-radio#examples
you could just do if(oldMember.voiceChannel || newMember.voiceChannel)
is that for me @quartz kindle ?
No
i just want to add radio to my bot @quartz kindle so that it can play any radio stations
as far as i can see, that package doesnt do that
hmm ok any idees please ๐ฆ
Get internet radio stream details via Node.js. Node.js module to get Now Playing information from an internet radio stream in the form of the following object:
it just gets the stream details to get "now playing" information
ok can i DM you tim ?
what for?
just wanted to ask personal if thats ok with you ๐ฆ
ask here
well i cant post my code here tim and wanted to know if it looks ok to add it to my bot
why cant you post here?
Does anyone know any tutorials on how to make a Web Dashboard for a Discord.JS Bot please?
idk about tutorials, but you can use an express server or something
http://prntscr.com/lmgglc @quartz kindle can i just add this for radio to my code ?
Did you not read the package description?
Get internet radio stream details via Node.js. Node.js module to get Now Playing information from an internet radio stream in the form of the following object:
hes talking about ytdl now
My bad
ok but will it work for radio ?
ok anything that can work please give me link to it please ๐ฆ
Heyyy
Question how do you make a bot put a into command prompt and then make it copy it and paste it into a discord channel
readline
Are you talking to me or Panda?
you
Heeeeeeeeeeeelpppppppppppp @.@
I don't even know where to begin with fixing this, because it's got perms in the chat.
Now it's just entering break when it happens.
@bitter sundial I just added a donatebot checkout, is there anything else I have to do to enable the donate button for when the bot goes live?
this is my first rodeo and I need some guidance
your server must be in the dbl servers list
then it should enable the donate button on your bot's page automatically
for a bot you just need to add an id in the edit form
I've done that
I've added a donatebot
I've added the server
I've added the guildID for that server
the donate button is enabled on my server, just not my bot
here
alright scroll down
what i have to do
how make porn cmd

@earnest phoenix Make a request to an nsfw api
make me nsfw api
google one
i find pornhub
cornhub
they probably have an api
a dude i know used efukt
idk if its a real api or just scraping, but his bot had the most horrendous things
That's efuktive
@desert slate do you know how to use try{}catch{}?
oof that message was almost three hours ago
that's how you'd go about doing that
But it's now fcking working for some dumb reason.
_>leaves one server
Bot stops breaking_
you can also check the bot's own permissions beforehand, and return if the bot doesn't have the needed permissions

it's because your bot doesn't have the permissions to send the message in the channel
it's an error you want to deal with
otherwise, your bot will crash whenever some dipwit messes up permissions
Yeah, found that one out the hard way just now @.@
They may have muted her because of the level up messages, because I haven't integrated a stoptimer yet.
Tixhelp
nani
Now no commands are working. 
Oh wait.
They're just slow as hell for some reason.
And there we go.
Issue again.
try{}catch{}
yeah try catch my dude
if you want to be really lazy (like me) you can just put one in your entire command handler, and then console output errors
ezpz
I find it weird that last night it worked like normal for three hours.
And then suddenly it's doing this.
some people don't like giving certain perms to bots
but some dipwit will come along, not understanding how they work, and give you errors
yeah but this is a message perm lol
then again, mute roles
especially in certain channels
seems your bot has levelup messages(?) and people wouldn't want those in like, a serious channel or anything
so it makes sense
oh message perm? lol
Yeah.
it's your issue to deal with
If I'm understanding this right, I should be try{}catch{}'ing the levelup messages?
yes
try
{
//code
}
catch(Exception ex)
{
Console.WriteLine(ex.ToString()); //optional, if you remove this you can remove the "(Exception ex)" too
}```
You can also test for the type of exception, I'd make it log anything that isn't a missing permissions error
likewise:
as I said before
you can also ask for the bot's permissions, make sure it has all the needed ones, and then return if it doesn't
that'll help your ratelimiting, but I don't use that method and I don't notice any real issues
i would like to do something like that how should I do it ?? https://i.imgur.com/uQwqfe4.png
syntax highlighting is like this:
```cs
//stuff
```
"cs" is for C#
but there's a cheatsheet somewhere out there
so here lemme test this
= blue? =
test
[Orange?]
test :: grey```
hey that worked
so that's what i typed for that
thx a lot ^^
npnp
Here's the cheatsheet btw: https://gist.github.com/ringmatthew/9f7bbfd102003963f9be7dbcf7d40e51
there's plenty of other ones out there but this one was made specifically for Discord so
basic users aren't able to see it
well you can make it so there is no perms for the bot in that channel, but then it wont have perms in that channel lol
You can stop a bot from seeing a channel, and users won't see it in that channel, but there are still ways to tell the bot is in the server
so short answer: no
https://owo.oooooooooooooo.ooo/i/lvc6.png why is there so much shit in lastlog
im having an problem here
Hmm?
when i import array from .json
Oh wait wrong place
ill explain in human
the 3rd line gives me error, but its correct
i mean file is there, array is there
didnt have this problem before
console.log activity.aclist
how is that going to fix it
this function changes bot "activity" every 5 mins, when array was in main file it worked just fine, but looked ugly and took too much space
activity isn't defined if i know glitch well
ignore line 4
are you sure activity is defined
since it doesn't seem to be
yes, idk why i get that error
i import settings from json
hm ok
and it works, but this shit doesnt
also unrelated but i think the code for random selection is without the -1 and the +1
i dont think it matters now that i think about it
just return null
try removing the -1 and +1
noone can help you debug it
I don't know what 3 of the variables in that are
this is function to change bots activity, in main file
we know that
this is activ.json, that contains arrays which get randomized
thats all the code
and where do you define activity
and aclist
https://owo.oooooooooooooo.ooo/i/khp6.png can't you just share the whole file? it's not like we're gonna steal code
can i upload here?
yeah, hastebin
ay thanks
idea: use the right variable names
const activitylist = require('./activ.json')
``` use this
im shit with js tho ;d
use activitylist, not whatever else you're using rn
sec
I shared the correct variant smh
spoonfeeding smh
glitch does dotenv for you
oh, cool mb then
@tight heath works, tnx
yw
:-)
also if you're shit with js, might wanna read https://discordjs.guide in-depth
A guide made by the community of discord.js for its users.
not like
reading
but
reading and trying to understand
&
i did read
always get confused
trust me i learnt how to build bot on idiots guide ;d
problem is im really shit with javascript
yeah thats a problem
learn the prerequisites :P
I launched into it with 0 js knowledge and none of these guides
just from d.js docs
so
and look where I am now
no need to flex smh
not flexing; it's a private project lmao
https://owo.oooooooooooooo.ooo/i/2d3p.png and this is where it is
Sturdybot10's gonna go offline and online a bit while I get the dblapi.js stuff working
ok cool, but you don't need to tell us that
can anyone help me fix this?
ik it sounds like its easy to fix
but it with sharding
we gotta see some code
What did you do before this error was thrown
so unknown trigger?
idk
you don't know your own bot
?
is this d.js stable or master
stable
unlucky
I don't think that branch has the call stack implemented so you can identify origin
yeah that doesn't help
You used client somewhere without defining it
wait what
it says undef in the djs lib
looked at wrong thing
but I have no idea where it could actually origin from
must have not scrolled down lul
implement what
if you talking about the v11, no
And internal sharding 
.shapes-background shapes-1 {
display: none !important;
}
``` Can somebody tell me is there a typo in this code? Because the shapes background still appears.
the background shapes is just .shapes-background
not sure why you targetting shapes-1 as element as well
oh thanks
You need to actually post the server count
?
You need to post the server count in your ready event
But why is a bot not invited?
Can you provide your bot's id
483304736435470336
Can't find anything in mod-log, ask @coral trellis to invite it
@coral trellis Invite pls my bot - https://discordbots.org/bot/483304736435470336

AttributeError: '<class 'discord.ext.commands.bot.Bot'>' object has no attribute 'guilds'
This is the error I get on trying to post server count
hm just changed guild to servers and it works
im using discord.js
s
${Date.now() - message.createdTimestamp}```
is that the same
as
client.ping```
no
no of course not
xd
Do you recommend a certain video to help make a economy module?
๐
Hi
Is it possible instead of pushing to replace?
Ex :
For json
Dresseur.SacH.replace(FinalRand) by Dresseur.SacH.push(FinalRand2)
@tight heath can you help me ? :)$
what lang is that
js
the heck
i know its weird
@lofty hamlet what are you exactly trying to accomplish
I want that when I perform the evolution of the command by replacing the pokemon then write the arg after the command
@tight heath
Mmmmhhhh ...
internet issues i presume
I have been trying to get my bot to announce when someone Upvotes it on my VPS... I don't know anything about webhooks, can someone please send me an example code?
what coding lang @earnest phoenix ?
JS
I checked on the API Docs on this servers website. But I cannot seem to figure out whats wrong
so u did this?
Everything should be correct. Apart from I do not know what I would put in the URL Box in the Bot Edit Page on the site
const DBL = require('dblapi.js');
const dbl = new DBL(yourDBLTokenHere, { webhookPort: 5000, webhookAuth: 'password' });
dbl.webhook.on('ready', hook => {
console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbl.webhook.on('vote', vote => {
console.log(`User with ID ${vote.user} just voted!`);
});```
run the code on your vps and insert the url that it says the webhook is running on
hm okay
help me, how to host discord 24/7
with heroku
is working yet?
@lament meteor I'm getting errors
events.js:183
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::5000
Port 5000 is being used by something else
ah
Use another port or kill the process using port 5000
What port can I run it on?
a port that you don't use
okie ty
Hello
The token in the API of Discordbots is my bots token, right?
@hushed berry Why is my bot muted? He did nothing
@topaz fjord It's still giving me the same error
@earnest phoenix try another port
Fam
What are u using to host
GalaxyGate
Galaxy gate has all ports open
Okay?
It might be a system process using those ports
what is my dbl token?
Try a lower number
Where can i see it?
go to the website
It still says about the 5000 port
under the api page
found it thanks#
unless you're running a minecraft server, 25565 will definitely work
@earnest phoenix are u changing both the code and the link in dbl?
Did you save your code
Are you sure
if it's 5000 again
Because it looks like you didn't change it
Also are what are u using for reverse proxy
if you are
Maybe the code didnt change on all my shards? Do I need to fix dat or something?
A webserver shouldn't have anything to do with shards
The problem is you aren't changing the code and saving it
Yeah
When changing the code. It normally only updates it in the current shard
It seems to load the first shard, which I am in, but not the others
Wait are you running this sharded
My bot is sharded
Then you will probs run into errors with this
๐ฎ
each shard connects to discord and executes code
Therefore each shard will start it's own webserver
and they will clash since they are using the same port
You can do this
But don't put the webserver code with the bot
So what do I do?
Make it a separate thing
??
Make a separate webserver
Store votes in db and they come
Bot checks db everytime a vote only command is run to see if the user voted
@earnest phoenix if you're getting that error regardless of what port you use, check if your bot is not trying to access that port more than once
for example if that file is being called in two different places or something
@quartz kindle It tries to run it on each shard
then thats the problem, you're not supposed to do that
you have to run it on the same file that manages the shards
ahhhh
else each shard would be trying to send their own server count
It's not a server count... It's upvote webhooks
ah yeah
but still, your main file will receive the votes, and you have to find a way to send the votes to your shards, or access them from your shards
using a database will be helpful
๐ฆ
I use the DBL API now, but my page is still normal with no information. No Server Count visible
do you post server count?
Video highlighting my research on PowerPoint Turing Machines for CMU's SIGBOVIK 2017 Read the paper: http://tomwildenhain.com/PowerPointTM/Paper.pdf Download...
Any of y'all using PowerPoint for your Discord bots?
๐
btw @ruby lichen what language/lib? i dont recognize that code
How can I communicate between processes without having my messages being json stringified which leads to weird results? (i.e. not using node's ipc)
I don't think my dashboard should be in the same process as my bot
It's sharded
the best approach to a dashboard would be to use a database and exchange information that way
have both processes use the same database
@quartz kindle it is still not working^^
Yes
Add a callback and see if it errors lol
My page is not updating but i've setted the API up
Add a callback and see if it errors
@quartz kindle What if I want to access the Client variable
That's really all I need tbh
@hushed berry
Add a callback and see if it errors
what do you need from client?
maybe there is a better way to do what you want to do
@hushed berry Wdym with callback? try catch?
No
bot.commands & bot.db (mongodb) @quartz kindle
all calls within the dbl java api are asynchronous
okay
storing the commands in a db seems pretty dumb
should be
yeah
for the majority of bots
and whats wrong?
There is no error
.................................................
Are you even listening to me?
Yes
The code is async so it won't error on that thread
Yes
If you do
.toCompleteableFuture().get() after the setStats method
it should block
Ah ok i look
Thanks
No error displays but the site doesnt update too
@hushed berry
did you run that
yes
did it error
no
do you want me to try posting it
What do you want to post? @hushed berry
Coudl you send me the dbl token
in a public chat?
in dms
Okay
if (user.presence.game.name === 'Spotify' && user.presence.game.type === 2) {
user.presence.game is null
User gives an error when he not listens to spotify
check if it's null, and if it isn't, continue with the code
fixed, thanks
ywnp
@brittle nova what do you mean storing commands in a db? why do you need to access commands from the dashboard?
you want to execute commands through the dashboard?
no
there will be a /commands page and I don't want to update the bot's code and the website
@earnest phoenix He says you don't listen when I listen to the song.
I'm listening to the song but you're not listening to the song gives error
bad english i sorry
@earnest phoenix #memes-and-media
I have just gotten this in the console... Not sure what it means
Error [ERR_IPC_CHANNEL_CLOSED]: channel closed
can you help me?
Spotify Track Info command
@brittle nova you will have to. i mean, you're not gonna post your code on the website, are you? you're gonna maintain a help list/guide, no?
I said above
@quartz kindle I wanted to somehow generate tables with bot.commands
instead of manually doing it
I have just gotten this in the console... Not sure what it means
Error [ERR_IPC_CHANNEL_CLOSED]: channel closed
JavaScript
you can generate them in the bot process into a database
or a json file
there are many websites that use generated json files for their docs pages
@earnest phoenix is that a voice channel error? if so, i cant help you, i've never used voice
No it isnt
idk i never saw that error before
I could fill up a commands array in the other process
just like I do with bot.commands
Can someone help me?
My bot keeps spamming responses in a specific shard but not in the others...
JS
๐ค
Make sure there are not multiple instances running
I had 4 Shards. Shard 1 Seemed to have been the cause. Channel Closed error only popped up when using a command in that shard
Hmm
Are the testing webhooks supposed to send a body in the post?
The docs say it sends it in a json format, I would have assumed it was in the body..? but the body is always empty
express
are you using body-parser
what
client.user.avatarURL) => error
what is the error
const bodyParser = require('body-parser');
app.use(bodyParser.json({}))
I don't know bil
Provide all possible information so people know what's up. Just saying "I get an error" doesn't give us enough information on your problem.
I see an error here and I can't figure out why I am
what error
const Jimp = require('jimp');
exports.run = (client, message, args) => {
var figlet = require('figlet');
figlet(args.join(' '), function (err, data) {
if (err) {
console.log('Bir ลeyler yanlฤฑล gitti...');
console.dir(err);
return;
}
message.delete()
const embed = new Discord.RichEmbed()
.setColor('RANDOM')
.setTitle('Ascii;')
.setDescription('```fix\n' + data + '\n```')
.setFooter('RexSky', client.user.avatarURL)
.setTimestamp()
message.channel.send(embed);
});
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: 'ascii',
description: 'ฤฐstediฤiniz ลeyi bota yazdฤฑrฤฑr.',
usage: 'yaz [yazdฤฑrmak istediฤiniz ลey]'
};
i don't konw bill!
hocam
hata
atomda gozukuyo
tam bu satฤฑrd bir hata varmฤฑล
ama bilmiyorum
calฤฑsmฤฑyo da komut
console hata da vermiyor
@quartz kindle
Worked thanks @topaz fjord https://santa-fell-from.space/mRlKmV
I was using: app.use(bodyParser.text())
and not json
google translate:
teacher
error
gozukuyo
there was an error in this line
but I do not know
command
console does not give error
ah yes
ok...
go back to google translate, im not gonna translate everything you say lol
ok
if console shows no error, what is not working?
i don't know bill
bilsem bende soyleyecem ama
kodlarฤฑ verem mi
const Jimp = require('jimp');
exports.run = (client, message, args) => {
var figlet = require('figlet');
figlet(args.join(' '), function (err, data) {
if (err) {
console.log('Bir ลeyler yanlฤฑล gitti...');
console.dir(err);
return;
}
message.delete()
const embed = new Discord.RichEmbed()
.setColor('RANDOM')
.setTitle('Ascii;')
.setDescription('```fix\n' + data + '\n```')
.setFooter('RexSky', client.user.avatarURL)
.setTimestamp()
message.channel.send(embed);
});
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: 'ascii',
description: 'ฤฐstediฤiniz ลeyi bota yazdฤฑrฤฑr.',
usage: 'yaz [yazdฤฑrmak istediฤiniz ลey]'
};
Kodlar bunlar
birde
burda da hata var
exports.run = async (client, message, params) => {
var channel = client.channels.find('name', 'canlฤฑdestek')
const asdf = await client.channels.get(message.channel.name).createInvite()
message.delete();
const embed = new Discord.RichEmbed()
.setTitle("ยป RexSky | Canlฤฑ Destek")```
@ruby lichen https://glitch.is-a-bad.host/i/6cz0.png
this is what i do for my bot that is sharded
i declare an instance of the dblapi the same way you do
i dont need shards cause my bot is on under 30 server lol
@loud salmon I use this in my main method
Wtf is wrong?
done
Still not working look: https://discordbots.org/bot/474505255187513344
@loud salmon
what IDE is that?
IntelliJ pretty cool, ha?
What response are you getting from DBL?
no
@gilded blaze I get no responses
uhh i would just manually post it if the api doesnt work
also oof i tagged you in the wrong channel
it should be in #topgg-api
You will always get a response, but the library might not expose it?
mhm
I don't know.
I get no errors
@wanton walrus hecking idiot
if all else fails, just POST it yourself using http
or whatever java's counterpart is
why does make take so long ๐ฉ
sucks
oh okay
I sharded my bot, for some reason, randomly it says channel closed... Anyone able to help me? JavaScript
Error [ERR_IPC_CHANNEL_CLOSED]: channel closed is the line
Thats not a Discord channel lul
ik...
What does it mean though?
I already looked on google but it doesnt come up with anything useful to me
@zealous veldt
IPC is inter process communication
It's how the shards communicate with each other
Are you using pm2?
yes
@earnest phoenix Did that solve your issue?
Think so haha
No commands have been used since then so. We gotta wait hahaah
@west raptor If it didn't work i'll be back either later tonight or tomorrow ๐
How long until Luca bot clears its cache?? I posted my bot initially with a random "Detailed description" just to get it posted (got rejected for spam), but now no matter what i post it's getting instant rejection.. I posted a real full writeup on my bot.
not sure how clearing my cache will effect what the bot/person checking my post will see
but i can try again
then.. don't spam??
Only wrote spam the first time..
every time after its been 100% legit
also while its pending if i refresh it randomly shows the first page i posted with the spam - cleared all my cache and forgotabout discordbots.org
@silk gust Were you the guy that shoved 300 minimum 300 minimum 300 minimum in your description
You submitted your bot twice with this description
lol
TypeError: Class constructor Client cannot be invoked without 'new' whats up here
new Client() ?
^
ok
so dumb jda question
but im using this tutorial
and
the current code i am using is not currently working
import net.dv8tion.jda.core.hooks.ListenerAdapter;
import net.dv8tion.jda.core.events.message.guild.GuildMessageReceivedEvent;
public class hi extends ListenerAdapter {
public void onGuildMessageRecieved(GuildMessageReceivedEvent event) {
String[] args = event.getMessage().getContentRaw().split(" ");
if(args[0].equalsIgnoreCase("Hello")) {
event.getChannel().sendMessage("hey nerd").queue();
}
}
}
can someone explain to me why that is not working
null
whats null
most likely the equal func
UwU
idk what to say to you Nik
Absolutely disappointed
@earnest phoenix did you register the listener?
May sound like a dumb question. but i'm wondering how i can add a reaction to this message: TextChannel gameFinderChannel = event.getMessage().getGuild().getTextChannelsByName("game-finder", true).get(0); gameFinderChannel.sendMessage(embed.build()).queue(); discord JDA btw
where can i find a exemple payload of vote by webhook?
the docs
@earnest phoenix https://javascript.is-bad.com/a8a0cd.png
use @Override
it'd make that a compilation error
because of the wrong method name
wait does override override the already made method in the lib?
probably
no
it just ensures you actually override the method
if you add it on a method that doesn't actually override
you get a compilation error

Can somebody tell me a way to make CSS ignores some '<' or'>'? Example: ```css
<code>><setup</code>
the <> at the code or at the setup?
inside the code tag
at the setup
example please.
<x>1 < 2 and 2 > 1</x>
ok thanks
Hi everyone ๐
What's the recommended way to send a server count to Discord Bot List once sharding is implemented?
There are multiple ways
You could just send server count and shard count
Or you could send shards, an array of server counts
Or you could send shard id, shard count, and server count, then each shard can post stats separately
hi guys I'm new and I'm coding my first bot. I used repl and python but after a while the bot goes offline. I just knew that repl is temporary. I have to use a different host? witch one? can you help me? I'm not an expert
read pins
Hey guys Im using IntelliJ to code my bot in Java, anyone know of some good reference material for incorporating a database preferably SQLserver?

I can do better py async def badReact(self,ctx,msg:int,*,react:str): a = await ctx.channel.get_message(msg) b = react.replace(" ","") c = b.split(",") for x in c: try: await a.add_reaction(x) except discord.errors.NotFound: await ctx.send(f"Reaction `{x}`` was not found. It's possible you have just mistyped it.")
"emojis": {
"upvote": "๐",
"downvote": "๐"
},
is there way to send numbers from 1 to 100? one by one
which language
In python, this is how I would do it:py #1 to 10 list = [1,2,3,4,5,6,7,8,9,10] for i in list: await ctx.send(i)




