#development
1 messages · Page 524 of 1
Yeah
So. I'm guessing there actually are no major disadvantages of sharding early?
yes and no
yes
memory usage 
Just that?
You got a sharded bot?
no
@steel heath hello there
Hai
if you have a stats command you have to change it to get total guilds
Uh?
What about getting info from another guild in a dif shard? broadcastEval?
yes
yet
@steel heath help someone wants to shard
yeet*
thats good to do
I have been a real nerd and creating a .txt document full of notes about sharding before doing it 😂
is your bot in more than 100 servers?
Hai, my DMs are always open smh
its best to wait till your bot is over 100 servers to start sharding
My bot has 155 Servers but I don't mind about memory as I have plenty
ok
check your spelling
check your import file names
where
in your bot code
wait, this is a service
check the folder for nginx, to make sure it has the .service files in it
and where is this folder?
fishy will know more than me, i just understand the error message. i would assume it would be in your program files folder
/etc/nginx/ it looks like just by googling it
are you using linuxs?
ubuntu
ahhhh
no directory found

try cd lib
wew so I'm special and forgot, but how would I have a module's exports be a function but also have other properties
allowing something like this
const thing = require('thing');
thing();
console.log(thing.ping);```
it should be in the a folder called lib\etc\nginx
module.exports.run = async (client, message, args, tools) =>{
@zealous veldt Just export a function and some properties
Thanks, got an answer from another server
ok
@knotty steeple what version of ubuntu u on
how do i check
uh
but im sure 16.06
try running
aaaaaaaaaaaaaaaaaaaa https://skullbite.is-for.me/i/wfadtwbq.png
its installed
it only says fail

`samuraistacks@ajhasavps:~$ service nginx configtest
- Testing nginx configuration [fail]
`
and
tf
u good?
so?
that ping varies a lot lmao
I mean check mine
@knotty steeple doesn't seem bad; https://owo.oooooooooooooo.ooo/i/g5ne.png I get this and it works
¯_(ツ)_/¯
domain
what
idk
yes lmao
@modern sable Possible to reinvite my bot to this server? 😋 https://discordbots.org/bot/457184443308965900
Lol
@earnest phoenix can I store it if I use util.inspect()? So like;
const a = new Schema({ msgObj: Object });
const b = new a({ msgObj: util.inspect(msg) });
b.save();
// Mongoose...```
anyone know how to make bot dm all server owners in python

What do you mean "all server owners"?
Like owners of servers who have the bot, or just in general all server owners on discord?
Because the second one would be against ToS.
the owners that have the bot in their server
dude dont
You can't have more than one
Unless you mean Co-Owner
Then you dm the role
@steel heath How about...just saving the message content
Save yourself the trouble
@earnest phoenix well yeah but I'm going to need that for something else in the future
why??
For caching guilds to DB and not use Discord API for dashboard
ive a sharded bot and it's pain in the ass to fetch information from shards, i use the api but there are limits, and on every page refresh, site makes like 3 api requests
What about the 1000/hr request limit?
And it's really slow that I'm getting some information from bot and from API, mixed together to run everything correct
Why are you constantly requesting the api anyway
Channels and roles
Don't you do that through your library?
Can't get a good result with broadcastEval from other shards
Uhm.
No role and channel objects
If you need help, feel free to ask
but actually think before you do something. lol
This was the suggestion of some other people in here, in this channel when I first started coding the dashboard. 
Shifting blame 
Nah, it sounds not that stupid tbh
It doesnt take a genius to understand that this idea is a bad one
Not sure, never did something like this before
For one, you're storing more data which takes up more space
Two, storing objects with variables such as guild name, icon, etc are prone to change
All I know is it's just working slow because of broadcasteval takes long
You'll end up fetching new info anyways
Only save constants to your database.
Things that wont change such as snowflakes.
Mhm
Because I'm a ditz, I forgot how to put links into Embeds, allowing text to be clicked to open said link. How do I do that again?
Tyvm~
np
http://prntscr.com/lkw1u1 Can it not send because it's a new account or smth?
OH
so a block, not in the same server, no dms, etc
wew 109 line ready event and it's not even close to done https://upldr.party/lUcmtoNg.png
When you don't realize you fuck code up and mention the wrong user
good job
I know right
what a friendly companion
Is it possible to get an invite to guild my bot is vc connected to?
yes
if your bot has permissions for it
How
what lib
D.js
bots can be connected to voice on multiple servers btw
...
It was just recommended
lmao
at least this time they know what lib they're using unlike last time
oook well i'll assume you're using 11.4.2
npm i discordjs/discord.js
client.voiceConnections will give u a collection of all the voiceconnections @earnest phoenix https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=voiceConnections
@shadow barn that will install master
then yu can use voiceConnection.channel to get the channel object
then do channel.createInvite()
which version is the absolute latest dev version of djs?
master/12 @shadow barn
How you do i install it?
You install like you just wrote the command
it's the one i'm already using on my bot
But you're asking how to install it
is the internal sharding thing already merged to master?
🤔
so you could just install master and not care about shards at all?
i'll probably switch back to master eventually
well
you'll need to set shardCount: auto
I don't like internal sharding
I agree
Internal sharding just makes the issue of JS being single threaded more apparent
well, it wont make much of a difference if your vps only has 1 cpu xd
as long as your code doesn't block a single thread can do quite a lot of stuff
i've seen bots with 30+ shards being shared over two cores
I see lots of people here using node.js, ignoring async methods and using sync ones.
Thats really painful, as they dont understand the difference
run each shard in one isolate
bot.voiceChannels.channel.createInvite()
parse error: Expected another key-value pair at line 12, column 3
7:12 AM
I’ve made invites for vcs
help error: expected code or what is causing the error at message 514594079565283349
I’m trying to get an invite to a random server my bot is voice connected to
Mentioning it here for any discord.js users, but I've made a little guide on creating your own "reaction help menus", those nice embeds that you react to when you want to change pages.
you cant make invites for voice channels
get the guild from the channel and make an invite
You can make invites for voice channels.
@sick cloud does your guide handle pagination by "unreacting"?
idk if v11 ever fixed that, but you can fix it by changing a couple files in v11 by their v12 versions
const guildNames = bot.voiceConnections.map(vc => vc.createInvite).join("\n")
msg.channel.send(guildNames)
Is says can’t send an empty message
May I ask why I can’t get the server owner of this server? I think my codes are correct and this is the only server that my bot can’t get the tag and name
They can’t be correct I can get the owner
@quartz kindle if the bot has permission it'll remove the users reaction, if thats what you mean
I did and it didn’t help at all
@sick cloud yeah that was my problem, but i figured out a way to make "unreacting" also work, that way you dont need to remove the reaction after the user clicks it
basically just backport 2 files from v12 into v11
ah
oops
throw me them in DMs if you want, i'll try implement it
sure
@keen drift hecno
hecyes
@earnest phoenix are you using discord.js?
I already gave them what they needed
Yeah and now I’m going to sleep being really annoyed because I can’t code lul
This is what I wrote and it works on all servers except for this one
it would be very much appreciated if anyone can help 🙏🏽 i only have a problem with this server owner
if(cmd === `${prefix}say`){
let said = args.join(" ").slice(22)
if(said.length !>=2{
return message.channel.send()
}
let sayEmbed = new discord.RichEmbed()
.setColor(sColor)
.setDescription(`${message.author} said: ${said}`)
message.channel.send(sayEmbed)
}
Trying to make a said command, returning "Unexpected token !"
!>= lmao
How would I make it not equal to then 
I'm used to LUA so
than
not bigger than equal to
< 2
wait
if you want smaller or equal, then <=
wait
boys
how would I make it so it doesn't have to be 2 words to send the message because with args.join(" ").slice(22) it requires a space inbetween 2 args
wat
nvm lol
you're joining all args into a single string separated by spaces, then removing 22 characters from the beginning of it, then checking if the final string length is 2 or not
maybe there is a better way to do whatever is it you're trying to do xD
well, you're removing 22 characters from the string
yeah how the f are you even getting 22
oh lmao right im dumb
i was using it from my ban message and thinking it'd work universally

copy pasting code
biggest newbie error
wdym im confused. not asking for spoonfeeding just help explain pls
you want to check if args length is bigger than 2, so you dont need any of that
just do if(args.length < 2){}
i assume args[0] is the prefix+command and args[1]+ is the message
Which would be better?
- Fetching a random sentence from a .js file using arrays.
- Fetching a random sentence from a json file?
lol but i mean, do they respond differently in time?
if your array is not too big, like tens of megabytes
better keep it in memory
or load it from a file into a variable
does it have to be a json file
just one sentence per line, then you can seek to that line w/o reading it all
a json file meaning parsing the whole thing
i think hes just asking about array in .js file or array in .json file
yeah if it's large enough to need its separate file, perhaps it shouldn't be in json
well it doesnt matter if its gonna go into memory
if its not bigger than a couple tens of MB
cant .js transfer faster but takes longer compared to smaller arrays?
so if it's only like a length of 20 maybe then json will be faster but past that js will be a bit faster
depends on how you're importing the data i guess
assuming both files will be read at the same average speed from disk, the difference is in how js parses the files
a json would need to be parsed into a js object
a js file would also need to be parsed from string into something usable
Yea
Here's my take, code base should not contain arbitrary data that it uses, it should be isolated out
but the honest time is probably measured in nanoseconds of time difference i really dont think it matters too much lol
nanoseconds will turn into minutes when you do into gigabytes xD
unnecessary bundle size and additional work to edit
s h h
Reading large data is always better if it's sorted or indexed
JSON file would require entirety of it parsed, but if you seek to it in a standard sentence per line, you can get the result with minimal reading
there's a whole big difference between a char[64] and a char[2048]
I tend to not allocate what's not necessary
yeah
best to get in the habit and not wonder why it's so slow after
but still, the same principles remain, if the database is small, keep it into memory, else use a database
i've never had problems with slowness
¯_(ツ)_/¯
well none of the typical application requires that level of speed
I'll be damned if my binary file ships with 10 mb+
well, i agree on that point
but not much you can do when you have to ship node with an entire browser inside it
for a simple desktop app
no, im just saying
Ur thinking about electron
like, you can easily build software with less than 5mb of code with lower level languages like the C family
you wont ever get close to that with js
but thats the price of multiplatform
the tradeoff between performance and compatiblity
high performance machine specific code, or lower performance works everywhere code
How do I make a bot create an invite for a server and send it in a message?
what lib
i think it has something to do with the coding process? id have to pull it up real quick
How would I do that if I'm not in the server?
you wouldnt
O.o
you cant just use bots to hack into servers
you can only do that if they have perms
I won't 😔 🤦
also the bot must be in that server
It is
if it isnt on that server
thats what i meant
since it is in the server you can get a channel in that server and do .createInvite
get a chanel from that server and use .createInvite
I tried
...wha wen wron
It didn't work. I don't know what's wrong O.o
...surely there must be an error
wait its js
i assume you are getting nulls and undefineds?
tbh
a simple
guild.channels.first().createInvite would do it assuming ur bot has perms
channels is a collection
ofc using .creatInvite will not work on that
you sure you cant just do guild.createInvite() and the pass options
pass options*
excuse me
What are the options I need to do this??
scroll up it's in the docs
Oh
yeah
and never mind you can't do guild.createInvite() you'd have to follow what mr certified developer above wrote
Lol
if its not borked ^
I did:
guild.channels.first().createInvite()
And it just gave me:
[object Promise]
now apparently past v12 you wont have to spawn multiple instances of the bot
well are you console logging its value
we are here to help u direct in the right way, not ur personal debugger :/
the docs has it all ig

and general rule of thumb if you get a promise returned use await 
es2017 why
depends on the code structure, if u dont want some promise block the code below it cause its awaited use .then or .catch
specially if its a fire and forget promise, but u still want to catch it if it do errors
Huh
ok so basically
just console.log it
you can choose between
u will see the answer on that code, using eval wont let you see inside of that
unless ur eval supports async
await guild.channels.first().createInvite() or guild.channels.first().createInvite().then()
imo id go with await 
It said "Can't use await outside an async function"
...but it is in an async function! O.o
But it isn't
?
If it says it's not in an async function, then it isn't and you messed up indentation
indentation doesn't matter
no its js
Ok
Imagine not being able to auto-indent your code because of semantic indentation
This message made by Not Python Gang.
Imagine coding on a language designed in one week. This message was made by Not JS Gang.
And very flawed
Whitespace > *
no space > *
NaN === NaN; // false

its sad that you need an extra operator for this
or typescript it
yeah
ts
it shouldnt be a habit at all I dont know many other languages that do that
Maybe PHP does

yeah php has that, but it's not nearly as weird as js is
Well then you dont do strict comparisons
Does <GuildMember>.hasPermission not check if the bot/person has the permission to talk in that specific channel?
Looks like not
:/
@olive finch that guild only
Figured. Thanks :>
@olive finch BTW u can also check permissions in the channel
Yeah; trying to figure of an easy way of doing so.
d.js?
yup
Stable or master
Stable
Ye, got that far. Hoped it'd return flags rather than bitfield.
Would've made life so much easier
😛
Yw
db.get is not a function
show full error and code
nice token
that method doesn't exist on points?
Is it possible to grab a JSON Key using a string?
n!enable test - Enables test command
var command = args[0]; //This in this case is 'test'
const mods = require("./modules.json"); //Grabs the command Enabled file
mods.command = "true" //Finds the key specified with 'command' argument and sets it's value to true
... //Save file.
I do it like this basically however, it still doesnt work.
If I have a path like /dashboard/serverID/moduleName and I have an ejs file for each module, would the best way to check if it is valid have an array like ```js
[
{
module: "moduleName",
file: "something.ejs"
}
]
an object of name -> file
Are you meant to type Typescript Declaration Files or are they supposed to be generated
How would I restart all shards?
client.shard.broadcastEval(`this.shard.respawn`)
I think I am stupid though, because I might be completely wrong with this code 😂
?? ☝
...
dpy rewrite await ctx.send(f"{random.choice(possible_responses)}, + {ctx.author.mention}")
ctx is apparently a str object
even though ctx is being passed
@keen drift Hey, you know anything about making a bot customizable from a website?

o... Sowwy 😢
...
about making a bot customizable from a website
yeah, I know something
So?
would this work
client.on('guildMemberAdd', async (member, message) => {
if(message.guild.id !== '497153287779516417') return;
let joinmessage = new discord.RichEmbed()
.setAuthor("New Member!")
.setColor("RANDOM")
.addField(`User`, member.guild.id)
.addField(`You Are The`, message.guild.members.size + "Member")
.addField("Please Make Sure To Read [#497305721063604239](/guild/264445053596991498/channel/497305721063604239/)")
.setFooter("Enjoy Your Stay!")
client.channels.get('514438853747015693').send(joinmessage)
});
Hm
Message?
Would be
.addField(`You Are The`, member.guild.members.size + "Member")
``` i believe
so this would be it?
client.on('guildMemberAdd', async (member, message) => {
if(message.guild.id !== '497153287779516417') return;
let joinmessage = new discord.RichEmbed()
.setAuthor("New Member!")
.setColor("RANDOM")
.addField(`User`, member.guild.member.id)
.addField(`You Are The`, member.guild.members.size + "Member")
.addField("Please Make Sure To Read [#497305721063604239](/guild/264445053596991498/channel/497305721063604239/)")
.setFooter("Enjoy Your Stay!")
client.channels.get('514438853747015693').send(joinmessage)
});
Get rid of message on the first line
nvm ye, i dont even need the first if because its sending to certain channel anyway
lul
now this?
client.on('guildMemberAdd', async (member) => {
let joinmessage = new discord.RichEmbed()
.setAuthor("New Member!")
.setColor("RANDOM")
.addField(`User`, member.guild.member.id)
.addField(`You Are The`, member.guild.members.size + "Member")
.addField("Please Make Sure To Read [#497305721063604239](/guild/264445053596991498/channel/497305721063604239/)")
.setFooter("Enjoy Your Stay!")
client.channels.get('514438853747015693').send(joinmessage)
});
ok3e
Yeah it works
You do know this will send global member joins to your channel right?
Member ID would work
.guild does not have .member
.addField(`User`, member.guild.member.id) would not work
member.guild.member(member).id? idfk 😂
haha
member.guild.member(member) you would have to have no brain cells to do this
how about
member.guild.member(member).guild.member(member).guild.member(member)
ye?
0KK
ok, i have this auto welcome message, which sends a message when a user joins my sever, how do i make it ignore other server users
an if statement
check guild id
yes, but its in a memberguildadd event, and if i do if(message.guild.id !== 'whatever') return; then it says message is not defined, but i can only call one thing in the async
member has a guild property
@earnest phoenix, you can't just create a message object out of nothing
Each event emits a specifc object or objects
const message = {guild: member.guild}
You seem to not understand how your library events even work
Hi
How do I remove the basic dbl background ?
Little triangle etc ...
@earnest phoenix exuse me for the mention but you know ?
Not a clue.
?
Inspect element
yes
Who is he ?
ask the website dev
How am I supposed to delete it?
you meant replace
Why ?
no option to delete it, perhaps
So ?
it's either you inspect elements, or ask tje website developers
@keen drift why is ur bot down?
why you pinging me here?
only server ur in that im in
ok, joining it
except for the fact
that the only invite available for that server is invalid
or expired
Where?
on the dbl website
invite invalid/expired happens if you're banned/on 100 guilds
I don't have an invite on the dbl website, it's on my doc site
yeah that one is invalid, I don't update that one
somehow my server image is broken as well

Fishy
You can check the endpoint to see if they have voted
How do I create a shard event?
what's a shard event
sharding file i presume
shard is not defined anywhere apart from this line
manager.on('launch', shard => console.log(`Launched shard ${shard.id}/${shard.totalShards}`));
client.shard?
what
no
i don't think so
/rbd/pnpm-volume/badc03b8-a538-46b8-a786-efd67ab85be3/node_modules/.registry.npmjs.org/enmap/4.3.3/node_modules/enmap/src/index.js:931
if (!this.isReady) throw new Err('Database is not ready. Refer to the readme to use enmap.defer', 'EnmapReadyError');
^
EnmapReadyError: Database is not ready. Refer to the readme to use enmap.defer
Database is not ready. Refer to the readme to use enmap.defer
which i have no clue where it is
@earnest phoenix https://npmjs.com/package/enmap
hey i was just about to do something and idk if its allowed.. I was going to make it so that you can enable certain feature by voting.
is that allowed?
yeah
yeah
hmm
but i need to make it not sound like its some scam
like To unlock this feature you must authenticate by clicking this link: votelink
many bots do that, using votes in some way like that is actually a minimum requirement for certification:
- Implementation of voting in your bot (e.g rewards on user vote. Minium being a command with a link to vote)
@tepid jasper you dont need to vote lock
I know, but that's the way many bots implement it
Well remember that the following is not allowed:
"Vote locking" a large percentage AND/OR majority of your bots commands AND/OR features.
Punishing users of your bot AND/OR community for not voting.
ye
i mean one of the biggest features on my bot is this
but not all servers are going to use it
and it takes up alot of memory on my end
the vote lock it
so i want some way to make sure that people who want it actually need to enable it
in some way
vote locking a lot of your features isn't just not allowed, it's super dumb :D
ye ik..
not saying you were going to do that, replying to advaith
the thing is, idk if this would cout as vote locking because it locks like 5/6 commands
nah, i think i might just make a captcha
tbh
make voting just giv prizes on my server xD
hmm
is the voting http request a get or a post?
Post
<li class="nav-item<% if (page.active == 'bots') { ' active' } %>">
my code has active set to "bots", so why wont it add the class?
use <%=
that errors
can anyone here do lil site for me i see css masters here and i feel outnumbered
use github pages tbh
I believe you need to code it a specific way to do that
Couldn't I use a broadcast eval?

@sick cloud so I have to do that with every error code?
I want to make an error code handler that will get you to an ejs page called error.ejs or something
Do I have to do that with every code though?
to shut down a shard i think you can just do shard.kill()
How can i get the vps uptime?
like my bot uptime is 10 minutes
but the server uptime is 1 hours, I want to use the server uptime but confused to get the uptime from the server
it would probably depend on your language and os
The os.uptime() not a real uptime from vps/server
I use discord.js
and the os: Linux @sullen path
You can try running the command uptime and scrape the output
but the output is bot uptime, not vps/server uptime
This process was restarted yesterday
How can i put that uptime to command if that from exec
You use whatever library allows you to run shell commands and get the output
Or that
Same thing
Aww okay, lemme try thanks 😅
Can you update a package's dependencies?
not w/o forking it
yeah cause package have specified dependency version, otherwise they'll be broken
how can I convert a language code to a flag emoji?
without making a l{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}ng object
thats for countries not languages
i made https://advaith.fun/flags/en.png to use in my bot (change en to another language) but its images not emojis
@brittle nova can you show an example of language code
there are a lot of isos
yes
iso8601, etc
standardization
but yeah your best bet is to map language codes to flags
since the same language can be spoken in multiple countries
english = england right so why is it an american flag
@heady anvil Put that in #memes-and-media and not here
Hey guys new to discord bot development, I am just learning the basics of handling events I am currently doing an channelCreate event that is posting in the new channel when created just fine, But I want it to make a post in the default channel as well, how do I get it to message the default channel?
I can post snippet if it is easier
Oh wow thanks thats really helpful!
Np
Hey
I need some help with the DBL Api for my site
The goal is this
How do I get the numbers there
oops I didn't see #topgg-api
alternatively you could somehow pass your client's guild and user count into the site
so you don't have to make api calls
^
Anyone knows how to add CUSTOM emojis only for bot? "Bot-Integrated" emojis?
emojis only for bot?
Yes
I mean you can make emojis restricted to roles
What I'm looking for is to do as the bot "Aki (Akinator)" has, for example, react with custom emojis that ONLY the bot has
does anyone know of a good npm module that like
tries to decode what language a string of text is in
it doesnt need to translate the text, just see what language it might be in
@primal egret yeah no, no idea, that would require immense checking
ok.. thanks
@earnest phoenix best guess would be querying the google translation api
with its auto detect
oh ok
and use the \:emoji: to get the ID?
Yeah
@primal egret
message.channel.send().then(message => (message.react(''))
Wait that's not it
it's missing a )
It's something like that

stop unplugging your laptop from wifi
apparently google is no help for me on this one, how can I make a list of file objects in a specific directory that matches a specific extension?
python
I have an issue with forever js, it well erm doesnt run forever. I have it on EC2 ubuntu server, just as normal node, it will stop after i execute. Any clue why this happens?
use tmux or something @earnest phoenix
Anyone kno what the exit code -1 means? :/
On java (windows), an exit code of -1 means closed unexpectedly
happens when your bot crashes
np
return discord.ext.commands.when_mentioned_or(BOT_PREFIX)
TOKEN = 'get out'
client = Bot(command_prefix=get_prefix), case_insensitive=True,
description=r"UltraBot, a bot which works 90% of the time")``` Why is my bot no longer responding to prefixes?
only mentions
bot_prefix is a string
if (slots[result1] && slots[result2] === slots[result3]) {
why does that do something when slots 2 and 3 are the same, even do i want it to be if slots 1,2 and 3 are same then blah blah
because that's what you wrote
if((slots[result1]) && (slots[result2] == slots[result3]))
that's what you have
thats what i should have u mean?
then what should i have
you want slots[result1] to be equal to slots[result2] and equal to slots[result3]
think about it a bit
yes
how many times does equal appear in that sentence
ye, if this equals this and this
wrong
if this equals this equals this?
if a equals b and c is wrong
a = b= c ?
you want if a equals b and a equals c
ok
since equality (on any sane language) is transitive, that code would also mean b == c
so if((slots[result1] == slots[result2] && slots[result1] == slots[result3]))
no
..
if((slots[result1]) == (slots[result2] && slots[result2] == slots[result3]))
no
if(slots[result1] == slots[result2] && slots[result2] == slots[result3])
no
it is
what you sent is a == (b && b == c)
HOW?!
dude
so if((slots[result1] == slots[result2] && slots[result1] == slots[result3]))
yes
uhhh whats a good bot hosting, reeeee
uhhh read pins, reeeee
oof
const commando = require('discord.js-commando');
class SetGame extends commando.Command
{
constructor(client)
{
super(client, {
name: 'setgame',
group: 'simple',
memberName: 'setgame',
description: 'sets the game the bot is playing'
});
}
async run(message, args)
{
commando.user.setGame(args);
}
}
module.exports = SetGame;
Do i understand args correctly here?
is it not the rest of the message after '!setgame'
Or is it an array of strings that I need to combine
class SetGame extends commando.Command
{
constructor(client)
{
super(client, {
name: 'setgame',
group: 'simple',
memberName: 'setgame',
description: 'sets the game the bot is playing'
});
}
async run(message, args)
{
commando.user.setGame(args);
}
}
module.exports = SetGame;```
Sorry eyes very tired lol what’s the difference?
nothing, I was just putting it in a code block for people
I'm trying to remember
how to do
Oh thank you
args in commando
I think
hold on
args: [
{
key: 'name',
propmt: 'what it will ask them if not provided here',
type: 'the type here (string, number, etc)'
}
]```
and you will put that in ur super
Ohhh I see. I’ll try this once I’m back on pc hopefully i didn’t fumble the code up anywhere else, I was able to get this to work pretty easy when doing a .on(‘message’.... but I want to make things a little neater I appreciate the help
np
when you try to set up the youtube data api
but their node.js quickstart script/tutorial doesn't work for some reason 
would this work so it only does one of these
if (message.content.indexOf(prefix) !== 0 && message.content.startsWith("@heavy thistle " && message.content.startsWith(config.prefix) !== 0)) return;
https://javascript.is-bad.com/8f0c03.png this is always true
the above will work, ive tested it
"@heavy thistle " && message.content.startsWith(config.prefix) !== 0
It works, ok
but the part where the bot has to be pinged, never works
how can i make it work
I want a link for giveaways permmision
How do I setup the Vote Webhook on a VPS? What would I put as the URL on the Bot Edit Page on the Website?
Exception in thread "OkHttp Dispatcher" org.json.JSONException: JSONObject["stats"] not found.
at org.json.JSONObject.get(JSONObject.java:520)
at org.json.JSONObject.getJSONArray(JSONObject.java:714)
at com.jagrosh.jdautilities.command.impl.CommandClientImpl$4.onResponse(CommandClientImpl.java:687)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:153)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
@coral trellis it just repeats this
no code of mine is being invoked
at least i dont think so
Spider Daddy
Rip
Or anyone
Someone pwease halp mah
@earnest phoenix first you need a webserver
something to handle incoming http requests
How would I do that?
google "<your language> webserver"
...
Are you using js?
Yes
I have just finished making a Web Server JavaScript
Do I run that in a tmux thingy also?
@keen drift
the js lib have webhook built in
?
Did I still need to create a Web Server?
no




