#development
1 messages · Page 1242 of 1
ehhhhh
i have like
I'd reccomend it for ease
Don't reccomend heroku for an app like this
So you have a vps?
yeah
Sick
but i cant be bothered to put it on there rn
but then you cant go on
:^)
@faint prism whatum the fuck
I did the thing
Just as an example for @silk chasm
messed up the status though lol
I love how I can SSH into my phone and update a bot lmao
For demo purposes. Not for a real prod environment
How i can fix if my bot replys commands twice?
ejs is not required at all
@pure lion i have oAuth working
definitely don't let it record a new mixtape
Hi, i know selfbotting is against ToS
but create dc servers automatically is it?
im not sure
@ionic dawn bare in mind YK303 didn't know how to message.channel.send

ask someone who knows stuff 
i report u to admin @charred geyser
for what?
ill read the ToS
good luck
I believe a regular bot can create guilds
i would have thought so
nice
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
yep, you def can
yeah, i was wondering how Emote Collector the bot can storage so many emojis
I guess
I would make a nitro for bots so we can add custom status and different tag
yeah... animated emoji
that would be cool
also gif pfp
yea
@charred geyser We're not here to judge people for their skills/knowledge

Actually he give's me wrong info and seasnail just warn me of his low knowledges
thats not trashtalk at all, its like calling my bot trash, it is, but its honest trash
okay maybe i was a bit rude but i was just notifying void that what he said probably wasn't accurate (which is wasn't)
Inform them that they are sharing misleading information but no need to be rude 👍
😮
DM me
I want to report that ur qt
lmfao
I just edited that message 10 times in 2s
I saw that, I thought i was having a stroke
the mod leaves me on read 
if 'true' in arg:
this doesnt work\
like basicly i want to get like the arg of the command
and if it says true or false
and that stuff
just check if theres something in the args index
python really holds peoples hands if that's valid syntax lol
yeah if x :
what does Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency mean?
oh god, circular deps
where
that font looks like a fckin 0
||0O0O0OO0oO0 👻||
Remember Excel?
im reading it
it means 2 or more modules are working together
and something happend
Pretty sure in Excel you can recreate a circular dep by having overlapping =VLOOKUPs
vlookup 
you know how you can do message.client.user.client.user.client.user.client.user.client.user.client.user
we use "LibreOffice" at school lol
that's circular (i think)
It is true because I say so and I say so because it is true.
ugh this one rasp pi keeps freaking crashing
oh wait, it hasnt auto-rebooted
well rip
did you reinstall the os at the sd?
check for bad blocks?
idk
I wonder if the board itself is damaged
mayb is somthing damage in the sd and when your os tries to load something just crash
hopefully your board isnt damage
wich rpi do you have?
IR camera module is hooked up to it
I'm "working"
oh
do you stream your cameras using the pi?
@ionic dawn I rsync to my main rpi
Probably should do a network storage
@faint prism NAS
Yeah, essentially what my main rpi server is (one of it's many functions)
what's wrong. how should I define
TypeError: Cannot read property 'name' of undefined
let invite = bot.fetchInvite(`https://discord.gg/${args[0]}`)
const embed = new MessageEmbed()
.setColor(autimatic)
.addField(`Ad`,`${invite.guild.name}`)
message.channel.send(embed)
anyone?
monogdb interraction
no problem
it was a bug with mongoose
fixed by updating
is there a way to tell which word u used most
what is my problem guys
what exactly are you entering in those two fields
have more features? I did not understand. i'm getting an undefined error
const ozellikler = {
ANIMATED_ICON: 'Animasyonlu İkon',
BANNER: 'Afiş',
COMMERCE: 'Ticaret',
COMMUNITY: 'Topluluk',
DISCOVERABLE: 'Keşfedilebilir',
FEATURABLE: 'Özellikli',
INVITE_SPLASH: 'Davet Ekranı Görüntüsü',
NEWS: 'Haberler',
PARTNERED: 'Partner',
VANITY_URL: 'Özel URL',
VERIFIED: 'Onaylı',
VIP_REGIONS: 'VIP Bölgeleri',
WELCOME_SCREEN_ENABLED: 'Hoşgeldin Ekranı Aktif'
};
embed.addField(`Özellikler`,`${ozellikler[invite.guild.features]}`
Any one can help me to setup tor browser in AWS ubuntu server
aprox, invite.guild.features is an array of features
You are trying to access a property via an array
TypeError: Cannot read property 'end' of null <- any help
Whatever you used .end on is null.
what even is null
like what did you use .end on
something.end what is "something" in this case
connection.dispatcher.end
have you tried logging connection
yep
also error is always the same
doesn't always appear though
only sometimes
idek what's the cause
how do i know if a server has a bannerURL?
if (invite.guild.bannerURL) ataturk.push(`[Afiş](${invite.guild.bannerURL({ dynamic: true, format: 'png' ,size: 1024 })})`)
how do i know if a server has a bannerURL?
@earnest phoenixif (invite.guild.bannerURL({dynamic: true})) // banner url exists
thx @earnest phoenix
amm ok so, me and my friends have a bot in 630 guilds, the "message" event and any other event is emitted like after 5-7 seconds from where it was created (big delay) and when we are switching to Eris its working with no delay, is there a reason for that ?
@earnest phoenix are you sharding?
to get server prefixes
for pre in prf:
prefix = pre["prefix"]
return prefix[str(message.guild.id)]
client = commands.Bot(command_prefix = prefix)```
this says prefix not defined
above is mongo stuff
Then that means prf is an empty list
The request cannot be completed because you have exceeded
:c
dont use youtube api
it wont work for big bots unless you looping various ip's
cuz quotas
maybe try spotify,but iirc both youtube and spotify scraping are against their TOS's
fuck tos
well you going to be stuck at that ratelimit then
pick which one
less music or ratelimit

Help :(( SyntaxError: invalid or unexpected token
code pls
@opal plank couldn't I mix both apis though?
or you could do the same as Rythm and spend thousands buying ipv6's and looping them to avoid being ratelimited
😳 well... no lol
that's too much work
if I can just make an easy searching system
for both apis
that'd make me avoid getting rate limited
because of curse you're gonna play less songs
that being said, idk how spotify ratelimit their users
I gotta read into it
most bots you see using them arent big enough to cause a problem
wouldn't want this to be a waste of time
@opal plank someone told be that it'd be a good idea to make like 20 api keys and make the bot randomly choose one from them
but that'd be a problem for queue wouldn't it?
random always bad
properly put a system in place to loop them
though i think it also checks for your ip
i doubt they'd be dumb enough not to takein consideration that too
when I do serverQueue which is a definition of ytdl-core npm package and use it serverQueue.dispatcher (which is defined) .connection.end <- sometimes I get a error that end is not defined (which it actually is)
not sure how to fix that
i wouldnt know, i havent used ytdl at all
corrention, that end is null
what's wrong with SQL?
nothings wrong with sql
Yeah, it's pretty fantastic for in the correct applications
Just ask your question
@hoary hill https://dontasktoask.com
uh what
So my npm package that I'm making is to get data from my mysql database on my website. Like getting an id of a user then it shows other details about them etc. How would I get it to connect to the MySQL database because if I just insert my MySQL details such as host,user,password etc people can just go in the node_modules file and get info and then login and that would not be ideal at all.
You're provided multiple arguments. You should be providing a concatenated single one
oh alright
They will be separated by a sep argument's value, which is " " by defaukt
then , + like you said. Seems like invalid syntax
(Just use f-strings, silly)
for i in range(number_of_iterations + 1)
What are you trying to do
that's my main confusion here
But why
What do you want to do programmatically
You'd just be printing the same thing 9 times
advanced hello world
Actually, 10?
l0l

yeah, 10
9+1 = 10 🐛👏
Forgot that 10-0 is 10 😂
Don't bring quantum physics into this
quantum physics
There are 10 elements in the generated list, therefore it's 10 iterations

0, 1, 0|1
That's why I only reference in hex
Seems you did an oopsie
array[10] means it has 11elements
(10)_10 = (16)_10
eh well
'it no work,i give up'
"wHY NO WORK"
"GIV UP!"
oh right
what's your thing again? I was too tired to remember
i was watching yesterday messages, and my message count is reliable
i was getting about 4k messages/min
send website again
i pinned down
the error is on my end
its on the cache 100%
with 3 mil users i get 20k+ messages
the fact that i was getting 4k and still showing 3 mil means the cache is borked
though i cant find what
@faint prism that spike is 2.6 mil users
send the website link
will do, but i already pin pointed the issue on my end, its useless
i think i found it
huh?
holdup, i gotta fetch food rq
can you log the outgoing request?
to see whats the url
okay but for real,gimme 10
gotta get food
k im back
Some of the values I can console.log out are in the object named Y
Can't find the live one though
found the avg for 7 days though
Really weird how they hardcoded the token like that
which endpoint they connecting to tho?
whats the uri
on the api docs i couldnt find any stats or metrics documented
thats the thing
helix is the api
whats the uri?
thats the endpoint they're getting the stats from
which isnt documented
At least you have a Helix token you can use now 🤷♂️ it'd probably be easier if I knew JS
tbh I'd just scrape it and be done
all this is futile tbh
i was checking on that to see where the problem is
but i pinpointed it from being on my end
which im fixing rn
'i think'
300iq
not going to
but would be fun to access their bot acc with that
surely they cant be that stupid....
right.......?
I saw sql psswords on websites
twitch has some weird bits with permissions
its not like discord if thats what you're basing off
hello, ive been messing with discord js embeds and i keep getting this error, not sure how im supposed to fix it
at Function.normalizeFields (/home/runner/Dragon-aid-bot-beta/node_modules/discord.js/src/structures/MessageEmbed.js:443:8)
at MessageEmbed.setup (/home/runner/Dragon-aid-bot-beta/node_modules/discord.js/src/structures/MessageEmbed.js:77:91)
at new MessageEmbed (/home/runner/Dragon-aid-bot-beta/node_modules/discord.js/src/structures/MessageEmbed.js:18:10)
at embedLikes.map.e (/home/runner/Dragon-aid-bot-beta/node_modules/discord.js/src/structures/APIMessage.js:164:40)
at Array.map (<anonymous>)
at APIMessage.resolveData (/home/runner/Dragon-aid-bot-beta/node_modules/discord.js/src/structures/APIMessage.js:164:31)
at TextChannel.send (/home/runner/Dragon-aid-bot-beta/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:166:62)
at Request.request [as _callback] (/home/runner/Dragon-aid-bot-beta/index.js:99:21)
at Request.self.callback (/home/runner/Dragon-aid-bot-beta/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
(node:1565) 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: 1)
(node:1565) [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.```
(/home/runner/Dragon-aid-bot-beta/node_modules/discord.js/src/structures/MessageEmbed.js:443:8)
update your d.js and node version
that usually fix 99% of ur issues
im stuck with node 12 with my host
@opal plank a lotta global values that are the stats on the page
what kind of a host are you using
replit
yuck
free hosting lolol
color: 0x0099ff,
title: 'Some title',
url: 'https://discord.js.org',
author: {
name: 'Some name',
icon_url: 'https://i.imgur.com/wSTFkRM.png',
url: 'https://discord.js.org',
},
description: 'Some description here',
thumbnail: {
url: 'https://i.imgur.com/wSTFkRM.png',
},
fields: [
{
name: 'Regular field title',
value: 'Some value here',
},
{
name: '\u200b',
value: '\u200b',
inline: false,
},
{
name: 'Inline field title',
value: 'Some value here',
inline: true,
},
{
name: 'Inline field title',
value: 'Some value here',
inline: true,
},
{
name: 'Inline field title',
value: 'Some value here',
inline: true,
},
],
image: {
url: 'https://i.imgur.com/wSTFkRM.png',
},
timestamp: new Date(),
footer: {
text: 'Some footer text here',
icon_url: 'https://i.imgur.com/wSTFkRM.png',
},
};```
Free hosting arent freep
le embed
can't hurt to get a 3 buck vps
check le pins
@faint prism that page is whack to say the least
yeah yeah yeah
though i know the error is on my end
you know there's the golden rule of frontend design
never expose sensitive data to frontend
yup
TwitchToken: "" lol

i may have an idea of what broke my cache
MAY
lets stress test it again and hope it works fine
4k streams should suffice for a test run
lmfao
cross fingers i dont get ratelimited cuz i just removed the limiter for this test
'Huh Duh No ScraPINg'
its not like discord peeps
though they can be ratelimited if you abuse their thing
their website may have a ratelimit
though if you connect with that and abuse on your own it may revoke their token
oh wow
i thought that maybe the token changed per visitor since it's bearer
but no
they def hardcoded
it's static direct access to twitch
tokens would need oatuh to be generated
unless they are related directly to twitch,that could lead to some issues
this is so sad
just like discord you are responsible for your credentials
i think they're genuinely manually updating all categories
If that were the case then Erwin, maybe your values are more accurate than the website's
just fucking barely
200 streams within 4 minutes
getting at them with the skin o yer teeth
i think im just shy of hitting a rl
oooooooh ats nae good
lol 70 streams and 2mb
lmao

d.js be like
take 100mb for 10, thats best i can do
i wonder if redis would be better for this
prob would
d.js light be like
take 200mb for 131
no 406's yet

actuallytwitch is 429 i think
or 430
i forgot
its one of those
429, i got it
third of the way there
oh shit
OH SHIT
i just noticed its running twice

why has no one pointed it out??

@opal plank there we go, scraped
https://discordapp.com/channels/264445053596991498/265156286406983680/755166270969872484
Lol
I said: scraped
The code above it
using System;
using System.Net;
string html;
public string GetLiveViewers()
{
using (var client = new WebClient())
{
html = client.DownloadString(new Uri("https://twitchtracker.com/statistics"));
}
string sIdx = "<div class=\"g-x-l g-x-l-4\">\n<div class=\"g-x-s-block\">\n<div class=\"g-x-s-value to-number\">";
string eIdx = "</div>\n<hr class=\"g-x-s-separator border-live\">\n<div class=\"g-x-s-label color-live\">Live viewers now</div>";
int a = html.IndexOf(sIdx)+sIdx.Length;
int b = html.IndexOf(eIdx);
return $"LIVE VIEWERS NOW: {html.Substring(a, b-a)}";
}```
oh
This twitch bot is about to die 
i though you were logging outside events

sent packets*
i think i did that yesterday
hol up
hmmmm
interesting
come to #265156322012561408 @faint prism
you guys were right, it was an issue with my host, im moving my bot to a pi tomorrow morning
anyone know of a good way to shorten this?
case({J, I, H, G, F, E, D, C, B, A}) 10'b00_0000_0000: begin HEX_A = 0; HEX_B = 0; HEX_C = 0; end 10'b00_0000_0001: begin HEX_A = 1; HEX_B = 0; HEX_C = 0; end 10'b00_0000_0010: begin HEX_A = 2; HEX_B = 0; HEX_C = 0; end ... endcase
@swift umbra what the fuck does that code resemble
and what language is that
thats not js
that cant be js
delphi?
oh jesus
Oh no
looks kinda likq sql
sql is:
CASE
WHEN condition1 THEN result1
WHEN condition2 THEN result2
WHEN conditionN THEN resultN
ELSE result
END;
CASE() END BEGIN END CASE
anyone knows how to open a node module in a txt file using nano or anything else idc I just wanna see files of a module I hav ehelp
pls
nano index.js
yeah what next
it opens?
it follows me to a menu
use it
nope
wtf do you mean "nope"
it doesn't open
and?
it goes to a menu
nano menu??
tip: dont choose vim
ohhh
Send a screenshot
you are in the editor
you can type and it will be saved to a buffer
ctrl + s will save the buffer to the file
ctrl + x to exit
ah alr
This is nano on JS
Error: XOF Ignored
what the fuck are you in
Lol
a console
Send screenshots 
Pro tip: ^X mean CTRL+X
CTRL+S to save is lame. Just hit CTRL+X straight away and press Y :3
no
yes
alright let me try
no u
yeah this aint right at all
it's literally 1 button press more

Please, efficiency.
it's literally 1 button press more
@nimble kiln the same goes with s and x
(holding ctrl) s x
I'm talking about your approach
My text editor is echo 
no
you have to press one button more than my method
stop
stares in VSC
you have to press one button more than my method
@nimble kiln that is invalid

it is?
i have to release one button more
echo Check out my\
code, isnt it great?\
I know it is >> indexmmLol.txt```
oh right i get what you mean
^yes, efficiency
efficiency

bot
no u bot
meanwhile in code
if() else if() else if()else if()else if()else if()else if()
Halp it's #shitp-- err.. #general-int
Alright lets get back to his question then
@ancient nova show screenshots
of your error(s)
or does it work now?
First things first, type sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean -y
sudo su && some random ass command && su yourOldUsernam
why on earth would you type apt-get in 2020
I alternate between apt and apt-get
is it wrong that i want to punch both of them auger?
I was born with apt-get
is it wrong that i want to punch both of them auger?
@opal plank I do too
I was born with apt-get
@nimble kiln apt is shorter
I was born with apt-get
@nimble kiln congratulations. You're depreciated
Wow that hurts
lmao
welp
now the grammar mistake is starboarded
it was starred so fast u broke luca

Let me star it too
^i like
Also why u booli me for being old 😠
@faint prism A second post was in starboard for a couple seconds
Also why u booli me for being old 😠
@nimble kiln because you are depreciated
i saw the bugged one for a sec too
a depreciated weeb
@nimble kiln hold on I'm trying
DEPRECIATED WEEB

POG
can u guys not shitpost IN FUCKING #development
Where else should we shitpost
Also I'm waiting for @ancient nova to send problem
shitpost has been deprecated, just like you 
yOu ArE nOT meAnt tO SeNd mEsSagEs iN #memes-and-media
it's probably because I am using a web terminal
directly from a linux machine?
yes
hmm alright
otherwise, use WinSCP (with Putty integration) or MobaXterm
There is
viorvimwhich is complicated for a beginner tho
@ancient nova if you ever use vim, https://google.com/search?q=how+to+exit+vim. you'll need
alright
aaaaaaaaaaaaaaand we got rate limited again
thanks

huh? who got ratelimited
i has
by spamming, on my bot, cuz i spammed
oh
i did
but im currently testing
therefor i didnt wanna wait for the whole cache to start
it takes an awful amount of time to cache 4k streams
oh boy you're the guy with that bot which serves a bunch of twitch streams
yessir
How's the twitch API treating you so far?
I see 😄
Ratelimit goes BRRRR
ah

and when i say twitch is a joke people ask me why
u can just scrape the token
why are we in development again
whats the rate limit on kicks and bans?
Why is there no search for servers button on the Android app?
Oh I thought this was discord
why doesn't this wanna work
const detectionWord = message.content.replace(1chat, "");
if (!detectionWord==="ItsOkayBae") return message.channel.send("ItsOkayBae is my creator.")
@ancient nova you wanna make sure if it's not equal, not flip detectionWord
Use !== and not ! at the start of the if
if !== means equal then what does === mean? please don't tell me that I'm that dumb
bruh my command handle has changed completely now it says client.commands=new Discord.Collection(); ^ TypeError: Cannot read property 'Collection' of undefined at Object.<anonymous> (/app/echo.js:16:29) at Module._compile (internal/modules/cjs/loader.js:759:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10) at Module.load (internal/modules/cjs/loader.js:628:32) at Function.Module._load (internal/modules/cjs/loader.js:555:12) at Function.Module.runMain (internal/modules/cjs/loader.js:826:10) at internal/main/run_main_module.js:17:11
There is no android app for top.gg
@misty sigil make a webview app and put in on googleplay lol
yesterday this worked perfectly
@ancient nova !== means not equal(and type)
!= not equal
= set
== equal
=== equal type
!== not equal type
! reverse signal
@opal plank how do I make it so if 1chat (my prefix) and after this will be ItsOkayBae then there's gonna be message.channel.send
const detectionWord = message.content.replace(1chat, "");
if (detectionWord==="ItsOkayBae") return message.channel.send("ItsOkayBae is my creator.")
that's my current code
it's just doesn't work
what?
why
what???
1chat is a command that allows you to talk with the bot
I wanna make so if someone mentions my name
'1chat' okay
it'll say that I created the bot
that's the code I wrote for it
const detectionWord = message.content.replace(1chat, "");
if (detectionWord==="ItsOkayBae") return message.channel.send("ItsOkayBae is my creator.")
but it doesn't work
why?
if(message.mentions.users.first() === your id) send(owner)
idk what the heck you overomplicating things for
then check content
just say ItsOkayBae in chat
if message.content.includes()?
after prefix
1chat
so for example
1chat something
it'll reply with anything else
if(message.content.match(yourid)) send(owner)
my attempt at a command handler prints this (discord.js)client.commands=new Discord.Collection(); ^ TypeError: Cannot read property 'Collection' of undefined at Object.<anonymous> (/app/echo.js:16:29) at Module._compile (internal/modules/cjs/loader.js:759:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10) at Module.load (internal/modules/cjs/loader.js:628:32) at Function.Module._load (internal/modules/cjs/loader.js:555:12) at Function.Module.runMain (internal/modules/cjs/loader.js:826:10) at internal/main/run_main_module.js:17:11
test?
my code is this const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); client.commands=new Discord.Collection(); for (const file of commandFiles) { const command = require(`./commands/${file}`); client.commands[command.name]=command; }
oops
how can i search for username#1234?
ex: /avatar aproxthethat#2017
can anyone help me with the mimu bot?
dont ask to ask @finite atlas
just ask what you need help with/are stuck with
oh alright
wrong server?
im struggling to figure out how to edit an existing welcome embed i used to know how but ive forgotten
yeah wrong server
@opal plank alright I got it but thanks anyway

here is for development support, if you want mimu support you need to go to their server
i assumed mimu was urs
iara get your people outta here

well ty anyways i tried making my own bot before but its very difficult but ty anyways

i changed my code to this const cmdFiles = readdirSync(join(__dirname, "commands")).filter(file => file.endsWith(".js")) for (const file of cmdFiles) { const command = require(join(__dirname, "commands", file)) client.commands.set(command.name, command) } along with the depends and now it says client.commands = new Discord.Collection() ^ TypeError: Cannot read property 'Collection' of undefined at Object.<anonymous> (/app/echo.js:10:31) at Module._compile (internal/modules/cjs/loader.js:759:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10) at Module.load (internal/modules/cjs/loader.js:628:32) at Function.Module._load (internal/modules/cjs/loader.js:555:12) at Function.Module.runMain (internal/modules/cjs/loader.js:826:10) at internal/main/run_main_module.js:17:11 keep in mind i added ```client.commands = new Discord.Collection()
client.prefix = PREFIX
client.queue = new Map();
yes
like
ur compiler says otherwise
const { Guild, Discord, MessageEmbed, Client } = require('discord.js');
just call Discord directl
@restive notch
const Discord = require('discord.js');
const Discord = require('discord-js')
messgae==='' or !message XD
what you're importing is the exported class/object from discord-js
+1
now Client is not defined or MessageEmbed
deinfe them
wrong
huh
since he used Discord
no that works for me
~~ or define client afterwards ~~
let embed = new MessageEmbed()
oh adding discord to the beginig it worked
^ that works the same
Does someone know how dyno members's command works (2 lines of members)?
you need Discord.MessageEmbed() if MessageEmbed isn’t defined
Does someone know how dyno members's command works (2 lines of members)?
@earnest phoenix
btw im using discord.js
How do I change the client id of the attached bot
Does someone know how dyno members's command works (2 lines of members)?
@earnest phoenix can you explain in detail?
this is so annoying
from that time its not even half way done

gonna take so long to get to 2k
-.-
@earnest phoenix
Dyno have a "members" command to check members in a role, the command is sent in embed like:
member1 member2
member3 member4
so my question is how to to that? (this 2 lines part)
I'll send an ss
inline = true
.addField(user,aprox,true)
Fields uses 3 keys
true writes side by side. false down
name,value and inline(boolean)
it signs in but when i run e!ping nothing comes out i have module.exports = { name: "ping", description: "Pinging the bot", execute(client, message) { message.channel.send('Pong :)') } } as my commands/ping.js
did I get it wrong?
@earnest phoenix
But when trying to mention in field, its saying <@id> instead of mention
3 maximum fields per line
that wont work
the "s" its check i can make it to show the other members, but nope its not working
onl description, field name and another field can accept mentions
title, footer, field name, all wont render
Can you send your code
they are using value
it signs in but when i run e!ping nothing comes out i have
name: "ping",
description: "Pinging the bot",
execute(client, message) {
message.channel.send('Pong :)')
}
}```
as my commands/ping.js
this is a field example
{
name: 'title',
value: 'this is the text below the title',
inline: true,
}
@earnest phoenix
on name,you cant put a mention
on value, you can
inline makes it inline or not
that command works on my other bot but not this one
@restive notch
module.exports = {
name: "ping",
description: "Pinging the bot",
await execute(client, message) {
message.channel.send('Pong :)')
}
}
use await
ooh
@opal plank Yea i understood that
so i will put mentions in value and make the field name empty
hence why i said use description
THOUGH
if you really want it
theres a little hack u can do
\u200B
use that in your name
no that doesnt seem to work becaue cannot use keyword 'await' outside an async function
if you leave name empty it returns undefined
like 20xb i think
yeah the line is await execute(client, message) {
but this is what i meant xd
oh
ok thanks
im dumb
@restive notch
module.exports = {
name: "ping",
description: "Pinging the bot",
async execute(client, message) {
message.channel.send('Pong :)')
}
}
:)
^
if that's not sending it means your index is fucked
yeah that works
either the detection of the command args or the execution
👍

but it still doesnt respond to e!ping
rule of the thumb, if theres no await,it doesnt need async

mind u i told you that 5 messages ago
oh
ok ill change to a command handler latter since just using a client.on('message') ect works fine
wait what?
wait what
You'd have to get it, splice the item, and put it back in
import { pluralize, model, connect, Schema, Document } from "mongoose";
pluralize(s => s);
connect(process.env.DB!, {
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false,
}).catch(e => {
console.error(e);
console.log("Error while connecting to database, see above for full error");
process.exit();
});
interface IGuild extends Document {
guildId: string;
prefix: string;
}
const GuildSchema = new Schema({
guildId: String,
prefix: String,
});
export const guild = model<IGuild>("guilds", GuildSchema);
export async function getGuild(id: string) {
return await guild.findOne({ guildID: id }) || new guild({ guildID: id });
}``` why does this not save the guildID to the database
i havent used mongoose in a long fuckin time but iirc you need to call .exec() after new guild
or you could alternatively use findoneandupdate and upsert the document, then return the document it finds after the query
I am a poor fucker.
yes man
😳 i cant even do real coding
A VPS or virtual private server is a virtualized server instance run in the cloud. It acts like a normal server, allowing you to remotely login and manage it just like a physical server or computer. If you're looking for a way to keep your bot online 24/7, a VPS is a great option.
Having trouble choosing a VPS provider or don't know where to start? Click here for a list of common and affordable VPS providers.

@earnest phoenix Learn to do coding
Is that your debugger?
Instead of using some china knock off language
offline has that item
What is e_c?
Oh yeah my bad.
as it takes a function
I see yeha
If you make it != it'll work
You're using triple
Which doesn't allow implict conversions
school just teached me fucking scratch when i was in fifth grade








