#development
1 messages · Page 551 of 1
Oh k
Guess i will just use my pi to code on when im not home lol
I have VScode on it
looks pro
how is it confusing
its practically the easiest thing ever made
do u wanna try setting up a vps or heroku 
fun fact: reaction role first started on a raspberry pi
cool
then y dont u help lol
i am on my pc 14 hours a day
so the bot is on for 14 hours xD
Cool
just getting the extra 10 hours be nice
Just simply upload your files to glitch
then
Include a start thing in your package.json
wdym
In your package.json file
yeah
{
"name": "jsbot",
"version": "1.0.0",
"description": "my discord bot",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Legend X",
"license": "ISC",
"dependencies": {
"discord.js": "^11.4.2",
"ms": "^2.1.1",
"weather-js": "^2.0.0"
}
}

Then it should just work
{
"name": "jsbot",
"version": "1.0.0",
"description": "my discord bot",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "node main_file.js"
},
"author": "Legend X",
"license": "ISC",
"dependencies": {
"discord.js": "^11.4.2",
"ms": "^2.1.1",
"weather-js": "^2.0.0"
}
}
like that?
ok
(index)
set up an external monitoring thing to ping the glitch thing every 5 minutes so it doesnt go down
wdym
Set up an http monitor
For address put the https://project-name.glitch.me
And done
and change project-name to the name of your project
...
.nomad
the site takes you through it
?
@warm marsh what
File format?
do i click add new monitor
.nomad is a file format?
Yeah it's a file format
@unreal junco yes
It's for Hashicorp's enterprise deployment solution
Ah what language uses it?
whats the monitor type?
Anything can be a file format tbh
Http
It's a structural syntax
oH MY GOD
i did
It's not hard
it is
The name of your glitch projecr
No
how do i get the name of glitch project?
Its not, you just dont bother reading what i said
no it really isnt
its whatever name shows in the top left corner of glitch
the name of your project
ree
...
What ever you named the glitch project is the name....
past-turn
That's the name?
i think so
so past-turn.glitch.me is the url
Then put in url bit https://past-turn.glitch.me/
Friendly name is wahzever the heck you want
did that
theni clicked create monirtor
Then its done
looks like the project doesnt even load 
now my bot is online 24/7?
No
Lol
u need to fix the issue
You most likely have issue with your code then
Probs getting errors in console
did i need to make a account?
Omfg
no
Read the page yourself
its still saving
Oh my fuc-
because u didnt do it right

did u read the idiots guide page yes or no
no
Yes ur code is ducked
oh i forgot to add something
...
👏
u dont have the express code
also
i forgot to put it back in

iS THIS A LEAKED TOKUN
yes
no
yes
i didnt leak it
Yes
Lmao
ree
ok
Newbies...
@bright spear hackerman
@warm marsh wdym by plural lmao
i feel dumb xD
how do I this?
But phone auto correct like a to screw things over
@young jungle whats the problem?
I can't add images to the embed code
Read the docs
they didn't say
What lang is that?
python
yeah, but it's rewrite
Oh
I have no idea about images to embeds
In js there is setImage or thumbnail
Check the docs for something like that
...
the thumbnail is too small, I'm trying to add an image to the text body
@unreal junco check logs
what logs?
Console
docs?
ih
Yes
it says
Your library's docs
"couldnt find module "express" "
....
then install express ree
Add it in package.json
how
Or do that 
done
do i do npm i express in terminal?
^
also fyi your computer terminal isnt connected to glitch
where do i type express
do u see the add package button
no
Yes, they docs are mad...
d.js has nice docs
do i click docs
no
what do i clikc?
Yeah d.js docs are better than d.py docs
I couldn't find anything about embed in there...
instead of starting
so will it be on 24/7
yes
thanks soo much
yw
@young jungle does set_image or image not work?
i am in a discord server full of bot devs that make bots for their personal doings
so they not in this server
i ask them help but they busy
That link that @bright spear sent shows everything about embed
looks like 2 things were given

alright im having some problems with ytdl-core
so downloading videos as mp4 works perfectly, but if i want only audio it breaks
ytdl('https://www.youtube.com/watch?v=H1Dvg2MxQn8', {filter: 'audioonly'}).pipe(fs.createWriteStream(`audio.mp3`))
it will create a 0kb file with the correct length of the vidoe but no actual audio
What happens when I use terminal:
Say in doing node .
It doesn’t do anything. It comes up with something saying “what application do you want to use” and then I click Visual Studio Code, then it opens up a tab called node
@sturdy delta do you have node.js installed
Weird
Do you know if I could’ve changed someone with CMD Prompt in Admin Mode.
reeposting because i still dont know why its not working for me
so downloading videos as mp4 works perfectly, but if i want only audio it breaks
ytdl('https://www.youtube.com/watch?v=H1Dvg2MxQn8', {filter: 'audioonly'}).pipe(fs.createWriteStream(`audio.mp3`))
it will create a 0kb file with the correct length of the vidoe but no actual audio
mp3 never worked for me
Try wav?
whatever, using node-youtube-dl now
before venturing into the realm of sharding. For a decent coder, how difficult is sharding to implement?
not
sounds promising
After I finish my bot, I will have no choice but to learn. I learned my lesson not learning how to do shards on my c# bot.
I guess it depends on the lib you use and what features your bot has
My bot mainly pulls data from my database which means I don't have much issues when it comes to data between shards
discord.py has one of the easiest sharding management
I'd say go for the challenge and wait till the last moment 
what I learned from all these time is that when it comes time to expand
too much abstraction is really bad
yeah. I should build my js knowledge a bit more. Although the syntax bugs me lol
also I think I love intellisense a little too much.. VSCode tries.. but its not the same.
when you guys helped me work on it making online 24/7 the bot went offline 😦
when i turned off terminal
you have the bot on glitch?
yeah
I'm not sure how glitch works really. maybe u have to add more stuff
ok
IntelliJ 👏
now a error comes up
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:66:16)
(node:10405) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:10405) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
well im going to bed
i need help in morning
it's free if you're a student
im am not a student
I am a student
Is there a way to ignore bulk deleted messages in the .NET api
message.react doesn't work.
const Discord = require("discord.js");
module.exports.run = async (client, msg, args) => {
msg.react('😄');
}```
Error:
DiscordAPIError: Unknown Emoji��
maybe 0 space chars?
module.exports.run = async (bot, message, args) => {
if (!message.member.hasPermission('ADMINISTRATOR')) return message.channel.send('This requies the permission: ADMINISTRATOR');
if (!args[0]) return message.channel.send(`Proper Usage: ${prefix}poll Question`);
const embed = new Discord.RichEmbed()
.setColor('RANDOM')
.setFooter('React to Vote')
.setDescription(args.join(' '))
.setTitle(`Poll created by ${message.author.username}`);
let msg = await message.channel.send(embed);
await msg.react('✅');
await msg.react('⛔');
message.delete({timeout: 1000});
}
module.exports.help = {
name: "poll",
description: "",
usage: ``,
aliases: [""]
}```
@lethal sun you can try msg.react(‘🙂’); too
@lethal sun You can copy paste this, my code
:)
@daring dust you need the unicode version of the emoji, which you get by putting a backslash before it
Just do an eval and do message.channel.send(“PasteEmoji/do :emoji:”, {code:’xl’})
And it’ll put the Unicode emoji into a code block
yes, that is the unicode version of the emoji
If you do the : your bot will send it as the Unicode version in the code block
Because when you send it it turns to Unicode
Same
Oh
So still
Oh
@smoky mica I try the code pool and i get here
if (!args[0]) return message.channel.send(`Proper Usage: ${prefix}poll Question`);
Prefix is not defined
define prefix 
What i need to do?
whats your file name where its prefix and token is
he probably doesn't understand xD
let prefix = "how you want to define prefix";
F
edit the file name
I use redis for per server config
per server config?
Sometimes the set returns null when its not null :( makes me sad
Settings for each server
Its for changing prefix, mod role, admin role, whether the bot’s main feature is on or not, and the logging channel
Oh thats great!
:)
I wanna do the changing prefix but idk
It took me a long time to work out how to do it
I did, but I was looking at Enmap. Eventually enmap worked but not very well. Also its dependency better-sqlite-pool doesn’t play well with linux after its been compiled on macos
I almost became a certified developer
I almost became a certified developer
Wtf my message sent twice
Should I do that?
const Discord = require("discord.js");
module.exports.run = async (bot, message, args) => {
if (!message.member.hasPermission('ADMINISTRATOR')) return message.channel.send('This requies the permission: ADMINISTRATOR');
if (!args[0]) return message.channel.send(`roper Usage: ${prefix}poll Question`);
const botsettings = require("../config.json");
const prefix = `yourfilename`.prefix
const embed = new Discord.RichEmbed()
.setColor('RANDOM')
.setFooter('React to Vote')
.setDescription(args.join(' '))
.setTitle(`Poll created by ${message.author.username}`);
let msg = await message.channel.send(embed);
await msg.react('✅');
await msg.react('⛔');
message.delete({timeout: 1000});
}
module.exports.help = {
name: "poll1",
description: "",
usage: ``,
aliases: [""]
}
Enmap works fine for me
I see bourne
how do you exit loop in python?
break
^
>>> while True:
... if i > 10:
... break
... i = i + 1
... print(i)
...
1
2
3
4
5
6
7
8
9
10
11```
oh thanks
are ec2 any good?
Is there anyone that help help me more than just stupid YouTube videos with creating a disord.py bot??
Cause I am absolutely terrible and have no idea why I am even trying!
@sharp current docs
To be fair there are good youtube tutorials
If you dont understand those you shouldnt even bother lol
Is there a way for a bot to use discords /tts feature, and if so how?
Library?
d.js has a tts option
Wait
Im just now noticing split is an option
Im sad now
then thats the problem, you are trying to send shard count when your bot isnt sharded
read the docs
em but i never didn't do anything about it you can help me? @mossy vine
read the docs
which one??
the dbl api docs
const Discord = require("discord.js");
const client = new Discord.Client();
const DBL = require("dblapi.js");
const dbl = new DBL('Your discordbots.org token', client);
// Optional events
dbl.on('posted', () => {
console.log('Server count posted!');
})
dbl.on('error', e => {
console.log(`Oops! ${e}`);
})
this is working? @mossy vine
idk
are you using js?
what do you already have? show the code that gave you the count error
he got error on sending shard count when his bot isnt sharded
if you're not sharded just remove the shard count
shardCount: ${this.client.shard.count}})
pls wait
remove that
ahhhhhh
fucking dbl api
@quartz kindle
{ shards: [] }
Error: 403 Forbidden
my console error
hey
forbidden means the api key is wrong
ProxE API Key
its true?
fucking api key
then idk, make a post request yourself
thats what i do
use request, node-fetch or http/https
pls wait tim
const dbl = require("dbl.js");
const { Command } = require('discord.js-commando');
const { RichEmbed } = require('discord.js');
module.exports = class EmbedCommand extends Command {
constructor(client) {
super(client, {
name: 'dbl',
aliases: [],
group: 'eğlence',
memberName: 'dbl',
description: 'TR Discord bot liste bot istatistiklerini gönderir.',
examples: ['dbl'],
});
}
hasPermission(msg) {
return this.client.isOwner(msg.author);
}
async run(msg, args) {
let dblClient = new dbl.Client({
dbltoken: "benimbotundblapitokei",
id: "519210018583609365"
});
dblClient.postServerStats({serverCount: `${this.client.guilds.size.toLocaleString()}`}).then((stats) => {
msg.channel.sendMessage('Discord bot liste istatistikler gönderildi.');
}).catch((e) => console.log(`${e}`));
dblClient.getBotStats("519216364469223434").then((stats) => {
console.log(stats);
}).catch((e) => console.log(`${e}`));
}
}
this is my fucking code
When i write this code
def _prefix_callable(bot, msg):
user_id = bot.user.id
base = [f'<@!{user_id}> ', f'<@{user_id}> ']
if msg.guild is None:
base.append('!')
base.append('?')
else:
base.extend(bot.prefixes.get(msg.guild.id, ['?', '!']))
return base
I Get This Error
BurNet@Casper MINGW64 ~/Desktop/Chat-App-master
$ python Blue_Walker.py
File "Blue_Walker.py", line 35
base = [f'<@!{user_id}> ', f'<@{user_id}> ']
^
SyntaxError: invalid syntax
How can i fix ? (Python)
pls wait
ok
eey @quartz kindle
this is my fucking code
if you're getting 403, that means something is wrong with the token, nothing wrong with your code, i think
i cant help you
who can help me
mods?
if dblapi doesnt work for you, you can always POST manually
you can post manually by sending a post request
HOW HOW?
do you have any http library already? like request, snekfetch, node-fetch, etc
i dont know python, sorry godzilla4
where do i get my bot image widget
I need help making acommand called (prefix)run
client.on('message', message +> {
if (!message.guild) return;
if (message.content === prefix + 'run')
//The code provided after run
})
This is the base code
you trying to make an eval command
yeah basically
well you should start by declaring your arguments
yeah i understand that part
what don't you understand then
client.on('message', message +> {
if (!message.guild) return;
if (message.content === prefix + 'run')
args code
//Whatever is here
})
node has a global eval() function
?
if (message.content === prefix + 'run') if message.content is EXACTLY prefix+"run"
ahhh I understand
meaning [prefix]run somethinghere will fail
Umm my args dont really work so I need some help with defining args
client.on('message', message +> {
if (!message.guild) return;
if (message.content.startsWith(prefix + 'run'))
//Args?
eval(args)
})
you can define args by using .split()
if (msg.startsWith(prefix + 'HAVA')) {
weather.find({search: args.join(" "), degreeType: 'F'}, function(err, result) {
if (err) message.channel.send(err);
if (result.length === 0) {
message.channel.send('**Geçerli Bir Lokasyon Giriniz..**')
return;
}
var current = result[0].current;
var location = result[0].location;
const embed = new Discord.RichEmbed()
.setDescription(`**${current.skytext}**`)
.setAuthor(`${current.observationpoint} > Hava Durumu`)
.setThumbnail(current.imageUrl)
.setColor(0x00AE86)
.addField('Timezone',`UTC${location.timezone}`, true)
.addField('Derece Türü :',location.degreetype, true)
.addField('Derece :',`${current.temperature} Degrees`, true)
.addField('Hissedilen :', `${current.feelslike} Degrees`, true)
.addField('Rüzgar :',current.winddisplay, true)
.addField('Nem :', `${current.humidity}%`, true)
message.channel.send({embed});
});
I Get This Error :
BurNet@Casper MINGW64 ~/Desktop/Chat-App-master
$ node Economy.js
C:\Users\BurNet\Desktop\Chat-App-master\Economy.js:19
weather.find({search: args.join " ", degreeType: 'C', function(e
rr, result)}) {
^^^
SyntaxError: Unexpected string(https://www.npmjs.com/package/weather-js)
@quartz kindle Can u help me pls
because that's not how js works
it's array.join(sep) not array.join sep
you can't omit the ()
oh thanks
@inner jewel (" ") to " " ?
error:
his error is showing something completely different from what he posted lol
yeah
just split on spaces and splice/slice then join
i am haveing soo much fun working on this https://cdn.discordapp.com/attachments/342843844284514307/532645595903426561/test.png
what do you all thank
?
k
TypeError: Cannot create property 'reply' on string 'message.channel.send('test 1 2 3')'
i got an error
@quartz kindle
I sent /eval message.channel.send('test 1 2 3')
@quartz kindle my bot cant write with embed
const embed = new Discord.RichEmbed()
.setDescription(**${current.skytext}**)
.setAuthor(${current.observationpoint} > Hava Durumu)
.setThumbnail(current.imageUrl)
.setColor(0x00AE86)
.addField('Timezone',UTC${location.timezone}, true)
.addField('Dere Türü :',location.degreetype, true)
.addField('Derece :',${current.temperature} Degrees, true)
.addField('Hissedilen :', ${current.feelslike} Degrees, true)
.addField('Rüzgar :',current.winddisplay, true)
.addField('Nem :', ${current.humidity}%, true)
message.channel.send({embed});
this
@fierce owl when i write command
gives this error
C:\Users\BurNet\Desktop\Chat-App-master\Test.js:37
weather.find({search: args.join(" "), degreeType: 'F'}, function(err, re
sult) {
^
TypeError: weather.find is not a function
try getting resourses from an API/Node module
did you require weather?
@quartz kindle hey! im the guy you helped with all the problems lol. i accidently deleted the putty "session" and need to log back in, can you guide me through what i have to enter in?
most likely
then just open putty again and specify the key file
TypeError: Cannot create property 'reply' on string 'message.channel.send('test 1 2 3')'
Any help?
I am using an eval command
You probaly have a message.reply(your evaled code)
?
client.on('message', message => {
if (!message.guild) return;
if (message.content.startsWith(prefix + 'eval'))
args = message.content.split(' ').slice(1).join(' ')
eval(args);
message.channel.send('Evaling',
`${args}`)
})
all good, i got it
well then how do i move it to a different line
you use \n
ok
can anyone help me with making a command in a discord server, where you say the command and the bot sends back saying how many people are in a certain channel?
you mean server?
how do i make my bot send a message to the default channel when it joins?
there is no default channel
you could loop channels and send to the first one that it has permissions to send to
or you can lookup channel names and send to which ever contains the word "general" in it, if any
there used to be a standard to have the default channel as the first created channel "general"
implemented in discord.js
Yeah but discord removed the default channel system in an uodate
when you guys helped me make it online 24/7 my bot turns off when my pc sleeps?
if its running on glitch then it wont
glitch has nothing to do with your pc
they dont know if ur pc is awake or not
then why does the bot sleep
the bot was tired
👏
Check uptime robot and glitch logs
Pls help
How to send message (discord.js) (not reply)
how do you make a bot take emotes the server has? that arent discord emotes?
message.guild.emojis (discord js)
Why not function 
function emoji(name) {return client.emojis.find(emoji => emoji.name === name)}
ok
<style>
body {
background-color: red;
}
</style>```
Browser: Firefox (newest version)
Is it wrong to put down there?
Css must be in <head>
^^^^^^
SyntaxError: missing ) after argument list
``` error when i used ur command thing
how do i do it?
like this? css <head> <style> body { background-color: red; } </style> </head>
No
do i ask someone elsE?
can someone help me with the emotes?
@unreal junco you never closed the find
@dull idol no, dont put it in <head>, taho was wrong
just do ```html
<style>
body {
background-color: red;
}
</style>
wdym never closed the find
you put a ( but not a )
as the error says
after all the arguments u need to close it
find(...) not find(...
ok
I look the red, and it disappears so fast.
there was no error by the emote wont be used
it just says :emote:
not the actual emote
function emoji(name) {return bot.emojis.find(emoji => emoji.name === 'name')
``` if the emoji name was tree would i need at **tree** anywhere?
change 'name' to name
its a variable not a string
also how are you using the function
wdym how you use function
well you're defining the emoji function
you'll need to actually use it if you want it to do something
??
@bright spear like !important only?
say that is the emoji
@dull idol css body { background-color: red !important; }
@unreal junco the emoji function is just a function that will return the emoji object of an emoji with the name passed to the function
so later in your code, after you define the function, you can run emoji('tree') and it will get the tree emoji
yep, its working.
how did you use it
module.exports.run = async (bot, message, args) => {
return message.channel.send('you feel off a tree', emoji('tree'));
function emoji(name) {return bot.emojis.find(emoji => emoji.name === name)
};
};```
- thats not the right syntax for .send
- you need to define the function before you use it
how would i define function?
just move the function emoji code before you try to send something 
wdym
...
instead of ```js
return message.channel.send('you feel off a tree', emoji('tree'));
function emoji(name) {return bot.emojis.find(emoji => emoji.name === name)
do
```js
function emoji(name) {return bot.emojis.find(emoji => emoji.name === name)
return message.channel.send('you feel off a tree', emoji('tree'));
it tells you a lot if you know js and understand basic logic and programming concepts
Just use the Unicode lol
i only understood half xD
@lunar sequoia its a custom emoji
well because your send is wrong
It will give you an emoji code, then use that in your send.
you need to include the emoji('tree') inside the string
not as a separate parameter
oh
@dull idol you mean the one on the card on frontpage and search? Or background on your bots page
background
Learn css
k
it works it wasnt working cause the function was in front when i put the message.channel.send b4 the function it worked
oh looks like you didnt close the {} @unreal junco -.-
always remember to close your brackets and parentheses ree
ik
its like this now
module.exports.run = async (bot, message, args) => {
return message.channel.send(`you feel off a tree${emoji('tree')}`);
function emoji(name) {return bot.emojis.find(emoji => emoji.name === name)
};
};
why did you close it all the way down there
idk
Thats just the result of copy pasting a shit ton of code without understanding it
Guys, Discord.py Problem...
Sometimes, Embeds don't show on Mobile
but it works on PC
thats more of a "discord mobile is a big meme" issue

how do i find out the specs of linux
you mean ram and cpu from terminal?
yea
this version of linux i never used before, everytime i press backspace it puts a question mark
sudo does not work so this is weird
it worked thanks
yea it did not show the real cpu buts fine
how do i check ram?
because its not on the list
cat /proc/meminfo
Thank you
Is it api abuse if i send messages to only certain channels that are specific to the bot like my-bot-announcements or is that still not allowed
You mean a channel lock?
Is that what its called?
Itd be optional so they dont have to get them if they dont want to
Its not that, its an automated message for my lottery that announces the winner
I was just asking if its allowed to send to all channels named a specific thing
Because sending to all channels in general is api abuse, right?
(So i was told)
as long as its opt-in (disabled by default) it should be fine
Alright thanks
How i can customize my Donate, Vote, Invite button?
what attr: val was?
@earnest phoenix ?
Guys, could you help me with a question ?
o
pls help me
yes i installed
if u attach the client to the dbl then it auto posts
wait
Imagine, how can i create a webhook ?
For example:
I Have a bot, them i call the command +dos.
My bot after that (in a random server)
Creates a webhook and them the webhook send a message
why would u want to create a webhook just to send a message?
Funny things
you can use an existing webhook
TypeError: cmd.run is not a function
The question is how can i create
@lament meteor
thats not a problem with dblapi
we cant help you without seeing the code
cmd.run() -> cmd.run
u prob messed up ur cmd handler
in the cmd file
wait @lyric talon just a question but... why use a webhook?
and what lib do u use
i'm using dhooks, but the people said to me that the discord.py rewrite have some functions that would help me with the webhook.
I
Just because i think that's better
Using webhooks in discord.py rewrite is simple 
The objective is:
When the people call a famous, this famous became a webhook them he/she appears and say some quote
shivaco. I don't know how to create a webhook in a server that my bot is in
:/ ok, imagine ty
my name is Telk 
tbh that is what people lack @blazing star
async TextChannel.create_webhook
also i suggest leaving the avatar empty
I hope you understand what you are supposed to enter instead of TextChannel
shiv tbh people ask that
Not surprised
ty shiv

@lament meteor ty man
no prob
help please what can be used for database
a .txt file
i used json in the beginning 
why are you asking if you already know whats good and whats not
MySQL does not work for me, during installation it says that the server has already been created, but I did not create it
hey guys i have a problem
help me pls
my bot has a deletemessages command
but he don't delete messages
how can i fix this
make it delete messages
Looking for a sneaker bot developer paying very well message me for more information
Just don't use welcome messages
If you do add welcome messages to your bot you should make it so it can be toggled
Also guild isnt defined
hey I have a tts bot but want to update bc 100 servers but don't know anything to add help me plz
great english I know
@pliant copper What?
But I promised a update at 100 servers
then make it work in voice channels i guess idk
It already does samuraistacks
xD
Idfk
ok so
I promise an update of nothing!
I will adddd speech to text🤯😂
i promise a update for my cli when i get 1 download
😂
2 later
i promise to delete my bot at 100 guilds
you actually can but reading a user's audio stream is very undocumented and hard
ok
I will just do that
speech to text is very bad to do on discord in general
what are you going to do if you have a 100 users speaking in a vc, pipe them all to google?
they have cpu power but do you have the money for it lol
Yes😂😂
I have😂
It’s not that people are going to read the whole fucking Harry Potter series😂
try {
var response = await message.channel.awaitMessages( {
maxMatches: 1,
time: 2500,
errors: ['time']
});
} catch (err) {
console.error(err);
return message.channel.send(embed2);
}
let re = parseInt(response.first().content);
if(re === 'Yes') {
message.channel.send("See you on the other side! :wave:")
bot.destroy()
delay(10)
bot.login(botconfig.token)
message.channel.send("I'm back baby! :tada:")
} else {
message.channel.send(embed2)}
}```
TypeError: Function.prototype.apply was called on #<Object>, which is a object and not a function
I don't understand
read the error
I don’t either
are you sure?
let re = parseInt(response.first().content); if(re === 'Yes')
u sure
what is this even supposed to do
I will read the entire series of harry potter
that was an attempt to fix it
it didnt have that
300 iq fix
it was just if responce
i tried ok
how would parsing it to an int ever fix a completely unrelated error
idk
do none of you think before trying to bugfix
"hey maybe i shouldnt compare a number to a word"
try deleting everything, that should fix it
yes
look at ur code pls
I don't even know what the error means
I don't know what to look for
code
look at my code for what I don't even know what to look for
it is your code
not ours
Just add process.exit() at random location in your code that should fix it
how did it not pickup on it
I use vsc

if you cant understand your own code, backtrack and learn the language before diving face first into it, and thats the tea
😂
i suggest you read the docs
I suggest to delete all the files
hi
Function.prototype.apply was called on #<Object>, which is a object and not a function
was called on #<Object>, which is a object and not a function
awaitMessages({...})
hey uh, @inner jewel If I ever to use hazelcast cluster as my cache layer, how you think I should go about invalidating cache
¯_(ツ)_/¯

the only thing i store in hazelcast is a lock
I have a suggestion so first you want to do const lol = new process.exit();
And after that just type lol in the code that fixes it
@inner jewel what's that guy that suggested consul, hazelcast and that little java framework
@pliant copper stop
Ok
you're not helping at all
a joke is not funny when you repeat it 3 times in 3 minutes
hecc, natan, what's that guy that said it was a breeze with consul, hazelcast, and that microservice java framework
you showed me a screenshot
idk

it was a meme 









