#development
1 messages · Page 1443 of 1
you dont return anything in helpcmd
what is weird about that
lol
you send your message in helpcmd
the function has no return value
this tbh
11$ for a custom prefix 
yeah i spent some time on it just needed another set of eyes
loll
back to ticket panel
await reactions be like 
who uses mee6 these days, mee6 owner sees this message and bans me LOL
🗿 But the return keyword on that function should not have mattered
It would still send the message
i dont even use it
a lot of people still because it has a dashboard
nor did i join there support server
discord favours mee6 so much over other bots it's insane
idk why
I partnered with a bot that has more votes than mee6! 😂
voltrex
Dank Memer and MEE6 are too overrated
It was the first big bot so it's older and more established. Makes sense.
dyno watching chat like
👀
Weren't mee6 older than dyno?
actually I would disagree about dank memer, I think they've spent a lot of time crafting that economy system over the years
sounds like a for loop
Define, condition, increment
dyno sucks 👎
pretty sure dyno is older
leave dynosuar alone smh
all monopoly bots suck ass
downtime brrrrrr
I didn't say it was bad, just way too big now
atleast most of its features arent locked behind a 100 dollar paywall smh
probably why its so slow
bot named monopoly has left the chat
Mee6 also have a voice recording feature in voice channel, i have no idea how they managed to do that
lmfao
is that not TOS
i was using it as an adjective
soon webcam recording
monopoly as in, bots that control the game
is that an actual feature?
yes
oh god
Is this development content
i love that nickname lol
Mee6 using bandicam to record would be a fucking meme
dynosuaR

dynos kids rn
bots can do voice receive, but video data is not sent to bots at ll
at all*
Pretty sure it's because they can't stream
then if you want the video 60 bucks kid
isnt the video data ignored by discord tho?
everyone thought so but the desktop client straight up receives video data from bots
mobile ignores it
but its a mess in general because there's one crucial opcode that bots can't use
so you're stuck with a dumpster fire
lmao
patreon api allows that if you setup it up I believe (may be wrong)
This is fine
@long marsh btw we found a way to minimize the large amounts of requests that are being checked/made
websockects + logic
websockects
Tim could you help me with nginx?
I have a button in my bot html page, but there's an underline.```html
<a href="MY-INVITE" target="_blank" class="btn success">Support Server</a>
css
yes
text-decoration: none
specifically
text-decoration: none;```
font: 'times-new-roman';
would this be a valid font? 
i don't know because my browser's default font is that
mmm ok thanks
the correct way would be font-family: 'Times New Roman'
gives error when adidng to bot
Extension 'cogs.quest.freewalk_txt.floor.entrance' raised an error: ModuleNotFoundError: No module named 'generation'
its a file
not a module
and i have it working normally
py
djs?
py
let message = await message.channel.send('any message doesnt matter')
await message.react(":tm:") // might want to catch this in case no perms
can you give some more context to this?
if this is a local file you'd probably want .
it no work
error or no response
Awesome! Great to hear 😄
Thomas would you like to read my json db code

Yo guys i have a problem i used this command but when someone send a message, i receive nothing, at the second message it send 1 message, the 3rd message i receive 2 message on the console log...
please can you help me.
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: FileNotFoundError: [Errno 2] No such file or directory: 'entrance.PNG' i have this file in the folder py
@drifting wedge can you show where it breaks and the files
like the code?
yes
entrance = Image.open('entrance.PNG').convert('RGBA')
it works
but when i implemented discord
it borke
so you mean it broke when you added it to your bot?
and worked when you ran it as its own file?
yes
ok so im pretty sure this is another case of where the file you are actually running, is
all paths are relative to that
well the files are relative to the file im getting the files from ye?
the way you have it right now
the paths are relative to main.py or bot.py
the files are in the same ifle as the place where im doing the pulling image
it will look for that image in the root directory
main
whichever file you are running
/folder1/image.png
so image.png is in the same folder as bot.py?
so i think the path would just be image.png
shrug, it looks like from that structure it is in folder1, might be in the root who knows
worked poggers
:)
nice
very pog
it makes the image
nice
nice

bot stops and gives this error: aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer it restarts but ive tried googling it and didnt understand awnsers
py btw
Discord closed your connection
hmmm
aight
can someone help pls
debug lines are your goal
maybe try if(message.content){
console.log(‘code’)
}
it should work
if(message.content){
console.log(message.author.username + " a envoyé " + message.content + " dans " + message.guild.name);
}
same probleme but right now i receive more messages
sus code
ngl
yep i'm french
not sus code
i'm just trying to learn
i'm testing all the commands
its smol bot so probably just trying to figure shit out
i don't care its just to test and learn
just a fair reminder.
Bots that log shit need to have a disclaimer or arent compliant to TOS
Bots that store data that isnt encrypted are against TOS
Logging is technically caching, and not storing, but keep that in mind while you make a bot.
Making a private bot to test is fine, but i see you also have a public bot https://top.gg/bot/771367546636206100 which you shouldnt be using for this kind of testing since it doesnt follow the previously mentioned issues
I think it's more like messages
ok
no, ids are provided by discord
any user data content stored needs to be encrypted and disclaimed in your bot
Tbf most bots probably have no need for this
if there needs be i can go fetch for the sorces, but this is the gist
Jake a discord staff has mentioned before bots breaking tos for logging or storing stuff without users consent with an example that goes by the following if your bot is a music bot, and you are storing message without telling the users, we have an issue with it
User data is simply anything typed by the user
their username
Channels names
guild names
content of messages
what ISNT user data
message ids
channel ids
guilds ids
timestamps
ok
its basically everything thats generated by discord, ids and all that
.setTimestamps is against tos
Cause i basically have a messageDelete logging is that fine?
Also erwin just said it's not considered user data anyway
Yea I added Logging in my bots category
and I have an update command which also mentions it
if you state and you STORING it(not just sending on another channel, storing in a database or persistent sotrage) its fine
I'm pretty sure you have to ask them for consent, not simply tell them
Youd want to provde that in your privacy policy
caching doesnt fall under storing and does not need encryption iirc
which is also a requirement of discord bots now.
Wait what
That's pretty inconsistent
theres a big ass text saying being a dev grants you some special debugging priviledges
You could still see all of their messages
if you are getting logs for debugging its fine
if you just straight up spying on peoples chat, thats an issue
it goes a lot along with common sense tbh
I guess
the easiest way is asking yourself if a user reasonably expects you to do something.
disclaimer doesnt need to be anything big either, somethign as simple as this works
a link to support, what your bot stores persistently, and how you can request deletion
thats about all you need
no
if I created a db table “user items” then db.all’d the data in the table, sorted it for the specific users item, then printed in a embed description, would it print as:
[“item1”, “item2”]
if it does, how would I split it so it goes
Item1 \nitem2
damm
switching from txt files to sql is really reducing my code length
and efficiency
arr.join("\n")
excuse me what
how did you store data in txt files
lmao
txt files? I want to scratch my eyes out
this.
so many open files
is sqlite3 really inefficent at the level of thousands of servers?
pretty sure any db will be fine in thousands of small to medium servers.
mongo with caching would really be your best bet for scaling imo
or just any db with caching
really
Depends. Constantly reading is no issues. It's when writing is involved.
ah
how much writing is a problem
cause im using it a lot for leveling prob
and on command for warnings
a map or something
if your doing leveling, or limiting the xp rate
could i pay someone to put ssl on my panel and node
because idk how to do it :(
and i dont want to annoy you guys
or is there a tutorial
just slap cloud flare on it
yea
will it work for the node?
and then download it when u shut it off
wdym node
not really when shut down
just store it for a bit and write every few seconds
im using a plugin system
for most of my commands
so u just used a constant loop
and asyncio
to write it every so often
i have a big error
some command work for the member and all the command for the member will not work but when the owner of the server do the commands it worked
https://pastebin.com/niLr4sjV
can u help me
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
whats the best way to try to corrupt a json
process.exit(), ctrl c?
any better ways
read it as a string and write some random chars.
JSON.corrupt(); 😛
anyone familiar with 'discord.js-collector' npm package
because im getting an error with it
whats the package do? 🤔
its probably unnecessary
well i guess all packages are
its probably something that could be easily made in discord.js though
but like, it sounds like it does exactly what a message collector does.
that then calls two things
message collectors are one line though
channel.awaitMessages(filter, callback);
?
look, if you're asking for support, don't set your pastebin to burn
codes kindof a mess, super hard to read, which makes it hard to help.
doesn't really help anything
was also 1000 lines of code he pasted in it 🤔
u mean he/her
he/her/it if we're going this route
nvm
alright Woo
question for ya
[].push('value')
this returned 1
is that because 1 is the status or something?
what are you expecting to be returned from that?
the array is what I expected
push returns the length of the array
why would it return the array
ty
you already know what the array is
it modifies the array you use it on
actually no idea why push returns the new length, but whatever
ended up just defining the variable to an empty array and pushing it next
why are you pushing to an empty array
is there a reason you need to push
yeah
["value"]
will give you an array with value
ig I could just make an array with the 1 value
wait
but why cant you just assign it to a variable
i mean it already is a variable
sometimes arrays are needed, since we dont know the context, 🤷♂️
@solemn latch if u find the problem ping me
no I mean im making a function that adds a value to an array
if the array is undefined it makes a new one
also
can I use logical operators without defining a variable?
I mean I can but should I?
i cant look through 1000 lines of code for that error, if you can make one with a minimum code to replicate the error, and the full error i can probably help more.
^
can anyone help me please to integrate Creating webhooks with discord.js
channel.createWebhook('Some-username', {
avatar: 'https://i.imgur.com/wSTFkRM.png',
})
.then(webhook => console.log(`Created webhook ${webhook}`))
.catch(console.error);
thats what I thought
ok brb
does that code example not work @sacred palm
well, i try to integrate it into my code, in a existing command
but i can`t get it work at all
my head hurts bad
😦
any error?
const channel = client.channels.cache.get('222197033908436994');
try {
const webhooks = await channel.fetchWebhooks();
const webhook = webhooks.first();
await webhook.send('Webhook test', {
username: 'some-username',
avatarURL: 'https://i.imgur.com/wSTFkRM.png',
embeds: [embed],
});
} catch (error) {
console.error('Error trying to send: ', error);
}
used this to send webhook in chat
and i get this error
ReferenceError: channel is not defined
well that error is pretty self explanatory, isnt it?
well, i want the bot to create webbook in any channel, where cmd is used, not in specific channel
then you'll have the channel in the message.channel property (maybe you'll need to fetch it first though)
const webhook = require("webhook-discord");
const Discord = require('discord.js');
channel.createWebhook('Some-username', {
avatar: 'https://i.imgur.com/wSTFkRM.png',
})
.then(webhook => console.log(`Created webhook ${webhook}`))
.catch(console.error);
module.exports.run = async (bot, message, args) => {
//message.delete().catch(err => {})
const channel = message.channel;
try {
const webhooks = await channel.fetchWebhooks();
const webhook = webhooks.first();
await webhook.send('Webhook test', {
username: 'some-username',
avatarURL: 'https://i.imgur.com/wSTFkRM.png',
embeds: [embed],
});
} catch (error) {
console.error('Error trying to send: ', error);
}
};
module.exports.config = {
name: "clap",
aliases: [""]
}
i don`t get it
I assume you still get the error channel is not defined?
well you use channel.createWebhook. And then a few lines later you define channel
okkk
i have some progress
now message.channel is not working
message is not defined
damn is hard
how is your code looking rn?
const webhook = require("webhook-discord");
const Discord = require('discord.js');
const channel = message.channel;
channel.createWebhook('Some-username', {
avatar: 'https://i.imgur.com/wSTFkRM.png',
})
.then(webhook => console.log(`Created webhook ${webhook}`))
.catch(console.error);
module.exports.run = async (bot, message, args) => {
//message.delete().catch(err => {})
try {
const webhooks = await channel.fetchWebhooks();
const webhook = webhooks.first();
await webhook.send('Webhook test', {
username: 'some-username',
avatarURL: 'https://i.imgur.com/wSTFkRM.png',
embeds: [embed],
});
} catch (error) {
console.error('Error trying to send: ', error);
}
};
module.exports.config = {
name: "clap",
aliases: [""]
}
the issue is scope, your channel, and message channel is outside the run export.
ok makes sense
at least the bot started now
but still i did not used correctly message.channel
oh damn
i think i got it
one sec
@solemn latch when i use my code on my test bot it work for member
😕
okkk many thanks @solemn latch @blazing portal i finally got it to work with your help
but, there is always a but
if i don`t want the bot to create a webhook for every command used
i need to integrate also webhook.edit
webhook.edit({
name: 'Some-username',
avatar: 'https://i.imgur.com/wSTFkRM.png',
channel: '222197033908436994',
})
.then(webhook => console.log(`Edited webhook ${webhook}`))
.catch(console.error);
i simply add this line after createwebhook ?
you should probably be checking if the webhook Some-username exists, or have a create webhook command.
channel.webhook.edit({
name: 'Pookie',
avatar: 'https://cdn.discordapp.com/attachments/711291970303295519/786747602258362429/pantmusic2.png',
})
.then(webhook => console.log(`Edited webhook ${webhook}`))
.catch(console.error);
channel.createWebhook('Pookie', {
avatar: 'https://cdn.discordapp.com/attachments/711291970303295519/786747602258362429/pantmusic2.png',
})
.then(webhook => console.log(`Created webhook ${webhook}`))
.catch(console.error);
stuck on this
channel.webhook doesnt exist afaik
if(channel.webhook("Pookie") == 1){
channel.webhook.edit({
name: 'Pookie',
avatar: 'https://cdn.discordapp.com/attachments/711291970303295519/786747602258362429/pantmusic2.png',
})
.then(webhook => console.log(`Edited webhook ${webhook}`))
.catch(console.error);
}
else{
channel.createWebhook('Pookie', {
avatar: 'https://cdn.discordapp.com/attachments/711291970303295519/786747602258362429/pantmusic2.png',
})
.then(webhook => console.log(`Created webhook ${webhook}`))
.catch(console.error);
}
do you have the docs on channel.webhook? i dont see that property(or method, since you use both in your example)
(node:23455) UnhandledPromiseRejectionWarning: TypeError: channel.webhook is not a function
damn

yeah, you cant just make up methods or properties.
am i rude if i ask for more help on this ? 😦
idm, watching someone play cyberpunk
i saw earlier that game added to torrent site and in 10mins got over 2000 downloads
well the developer of the game is their own publisher, and they often dont add drm.
@solemn latch #development message
all i did was remove my music command
Actual Code:
if(channel.webhook("Pookie") == 1){
channel.webhook.edit({
name: 'Pookie',
avatar: 'https://cdn.discordapp.com/attachments/711291970303295519/786747602258362429/pantmusic2.png',
})
.then(webhook => console.log(`Edited webhook ${webhook}`))
.catch(console.error);
}
else{
channel.createWebhook('Pookie', {
avatar: 'https://cdn.discordapp.com/attachments/711291970303295519/786747602258362429/pantmusic2.png',
})
.then(webhook => console.log(`Created webhook ${webhook}`))
.catch(console.error);
}
Error:
(node:23455) UnhandledPromiseRejectionWarning: TypeError: channel.webhook is not a function

and how can i check for existing webhooks ?
well that sucks
you can fetch them, but youll probably also want to keep track of it in cache or in a db.
https://discord.js.org/#/docs/main/stable/class/TextChannel?scrollTo=fetchWebhooks
not really, is cracked by CODEX and does not work online ... so is kind of ok
it s like GTA V, after many years, cracked version still works only offline
story mode
because the game is on their servers
Yeah
even for FiveM you need rockstar license
They'll probably patch it too
How did it get cracked before release though
Nvm it got released today
- Extract
- Burn or mount the.iso
- Run setup.exe and install
- Copy crack from CODEX dir to installdir
- Play
General Notes:
-Block the game's exe in your firewall to prevent the game from trying to go online ..
God
probably not a good idea to discuss this stuff in this server 
That's insanely easy
or atleast to this extent
True
right, returning to my code
can you please help me implement that fetchWebhooks() to my code ?
i don`t understand how fetch works
😦
if(channel.webhook("Pookie") == 1){
channel.webhook.edit({
name: 'Pookie',
avatar: 'https://cdn.discordapp.com/attachments/711291970303295519/786747602258362429/pantmusic2.png',
})
.then(webhook => console.log(`Edited webhook ${webhook}`))
.catch(console.error);
}
else{
channel.createWebhook('Pookie', {
avatar: 'https://cdn.discordapp.com/attachments/711291970303295519/786747602258362429/pantmusic2.png',
})
.then(webhook => console.log(`Created webhook ${webhook}`))
.catch(console.error);
}
this is how it looks now and i don`t understand how and where i should add fetch
i understand that i have to remove if and else
but where fetch goes

well, before using the webhooks at all
but youll probably also want to keep track of it in cache or in a db.
and how i can add in cache ?
is a bit difficult i think to implement db now
db's are pretty simple, hardest part is choosing which one to use.
is simple for you maybe
caching it would also be pretty simple since fetch gives you a collection already
json go brrrrrr
i never used db with discord.js
don't use a json db
$nomention
$allowMention
$argsCheck[>1;Please mention someone to kill!]
$color[$randomText[65280;16711680;C8C864;47eabc;df2e90;543683;264bec;d20057;515e63;497147;376034;087264;4ca6ff;460a18;faebd7;eed330;cb4bca;fffff2;fffc3c;b507db;ff8d00;00ff38;ff00e7;98bdf0;daf7f8;b9e0d9;debcb0;ffb3b3;b8d9d0;83d0f2;552f2e;fff380;0000ff;ff4d00;afb169;afaf0a;ffffff;c7ae71;a77c86;17264f;cbffe8;c7bbc9;debcb0;010649;feebe6]]
$title[Death]
$description[$message died from $randomText[Coronavirus;Ebola;not consuming enough juicy memes;AIDS;their mom shooting them;the thought of LGBTQ;Donald Trump].]
what the fuck is this language
so, @solemn latch i still need an if function to search for webhooks after fetch ?
yeah, id look at the collections docs to see the kinds of methods you can use.
are you implying they have any braincells to comprehend that
haha yes LGBTQ funy XDDD aids FUNNY XDDDDDDDDDD
@solemn latch i'm done for today, i'm happy that i got it to work finally, maybe tomorrow i'll get it done with fetch and search for existing webhooks.
Many many thanks for all your help!
this is basically what i wanted
😄

also animated emoji
and if i also use message.delete it`s almost like you've send emoji
So I am fetching data from my database, but I want to get the data that is saved to the user id, so I am wanting to do response.data[key].users then the user id to get it but I am unsure on how to do that. I tried doing it in [] but it didn't work. Here is the code below.
userid = message.author.id
await axios.get(`${client.config.firebase_url}/guilds/${message.guild.id}/medals.json`).then(function (response) {
for (var key in response.data){
infoEmbed.setDescription(
`${progress_bar} **${percentage}%**\n\n${topHeader}\n\n${remaining_info}\n\n**Medals:**`
)
for (var key in response.data){
if (response.data.hasOwnProperty(key)) {
if (response.data.errors == null) {
infoEmbed.addField(response.data[key].emoji + " **" + response.data[key].name + "**", `Awarded by <@!${response.data[key].users[userid].awarded}>`)
}
}
}
}
}) ```
wait firebase is http based?
anyone know why this let option = bot.db.get(`ticketname_${reaction.message.guild.id}`) if(option === null) option === `{user.username}s-ticket` let msg = option.replace(`{user.username}`, user.username) && option.replace(`{count}`, count) sets the channel name as user.usernames-ticket instead of replacing it? even though it has no errors?, option is defined as '{user.username}s-ticket'
cuz you need a $ sign
at what?
a $
dont replace stuff
template literals*
here, read that
ive never heard of that
then you should, this is basic javascript syntax
what are web hooks used for again
any recommendations for going about creating a new array for elements returned in a for loop? all keys are the same, values are different
fs.readdir('commands/admin/', (err, files) => {
if (err) console.log(err);
const file = files.filter(f => f.split('.').pop() === 'js');
if (file.length <= 0) {
return;
}
file.forEach(async(f, i) => {
const pull = require(`../admin/${f}`);
/* if (i+1 > 6) {
return;
} */
const x = [(i+1)+' '+pull.mod.name+' '+pull.mod.description]
console.log(x)
What's .bot-img{ called now? These new css whatevers are confusing me
mainly used for linking 2 apps together
@timber cloak I found this class="entity-header__image"
np
so entity-header_image I guess
solved my question. not efficient at all but gets the job done
still need someone to help me with this
they are all the same length
idk abt 18 specifically
but if u counted one as 18 they are all 18
Hey guyz can u tell me how to use heroku as a host for my discord bot which is in js. It will be appreciated
No, they're not.
i know how to do it in python but it should wortk with js too
ya tell me
i have not paid anything
i dont remember doing that can i check it via my terminal
23 days a month
ig it is for 550 hours
yea
but once thats off the table
i have one more question
are you writing/reading to any external files
with ur bot
no like files
like read/write to local txts
or dbs
cause herokus file system is ephmermal
for my bot which i am talking about which is in js for that no but for my another what which is in java yes
ya
now go to the heroku website
click create new app
put in a name
and create ur app
should look somethin like this
ya doing it
ya sure
Can't you get up to 1000 hours a month?
bank?
paid
ya
free is 550
No
its not gonna last infintely
I still have it
It's not only at first
"Personal accounts are given a base of 550 free dyno hours each month. In addition to these base hours, accounts which verify with a credit card will receive an additional 450 hours added to the monthly free dyno quota. This means you can receive a total of 1000 free dyno hours per month, if you verify your account with a credit card."
Yeah like heroku is going to do anything with it
do some have 1 more or less digit?
the less likely its gonna be leaked in a hack
what they're trying to say is that mommy doesn't want to give her cc
?
i have my own cc u know
but what ever
@bright flame when ur done with doing what ever and created the app tell me
then go to cmd
ohk
ohk
did u do that?
ya done
Wow, why do you have so many lol
What's .bot-img{ called now? These new css whatevers are confusing me
Heroku isn't even meant for discord bots
ya
Heroku is for web apps
is this a command?
ya i did but nthing executed
yea it did
now go to ur file browse
and open up the procfile
in notepad++/notepad
i have vcs
ya opened but the file is empty
- too?
Dude
Look at the link I sent
You don't need to tell them every single thing to do
shall i give that file name extension
ya done
- setup requirements.txt
- cmd command : git init
- cmd command : heroku git:remote -a [heroku app name]
- cmd command : git add .
- cmd command : git commit -am "[some random message between quotes]"
- cmd command : git push heroku master
- go to dynos in heroku and turn on the bot
setup requirements.txt whats this
requirements.txt
is a file
with all the packages u need
so for example
discord.js would be one of them
so u just type up all the requirements in a txt file
Nooo
You don't normally manually type those
You create a virtual environment and use pip freeze to generate a list
Sorry
That's for python
You need a package.json in node.js
Not a requirements.txt
i have that
Again, you would've known that if you looked at the link I sent
Which is literally created by heroku
hmm if i get doubt then who will i ask
Then you can ask here
ya i was able to run the app locally
and my bot got online
but unable to open localhost
in web
@hollow sedge
@outer zenith
yes heroku local
yes worker
Because you shouldn't expect anything in localhost
Why are you expecting something in localhost then
It's not a web app
ohkk
^
You should use electron for web app 😎 👌
That's not what I mean by web app
Oh
Mmmm
Heroku is pretty much the best free one I think
I use a VPS to make my bot stay online 24/7
Yeah that's the best way
i installed cool-ascii-faces now what to do?
They said webhosting service though
For what is that module?
Lol
i am not getting it in docs @hollow sedge
Do you know node.js?
ya
Is he trying to make a bot? @hollow sedge
Well this is fairly simple so I really doubt that
Yes
There's literally one function to call
i cant use heroku cause its filesystem is ephermal
I don't even know node.js and I knew what to do 5 seconds after looking at the npm page
and im using .db files
Wrong link
no
i wanna host it
Wait what?
The best way for hosting bots is using VPS
The only thing you should know about installing modules is the command for installing modules lol
Just say npm install (module)
or npm i (module)
now what should i do?
If they would spam with their bot they should get a server with more members first lol
Dude are you for real
That's an EXAMPLE
Something called cool-ascii-faces is not going to be essential to your code
Yep
Also I think you're pretty much done @bright flame , the rest might just be for web apps
That's an example to teach you how to install modules and declare these modules into your code.
i am not getting what u r saying
i did that in the local host
You don't need to keep following the tutorial
Because you finished the part required for discord bots
now what to do
The real question is.... How did that bot joined the server...?
Idek
how
You are using github, correct?
He told you 1 minute ago
github?
uh
Oof
no one told me about that
._.
No one is going to tell you anything
It's up to you to find out
anyway
where are your files
Wait, what language are you using?
locally in my pc
js
lmao i joined taht server
you have the heroku CLI installed, correct?
and there were all bots
lol
@bright flame
no human would join that server
yes
Wich server?
hi guys ${member.user.tag}
yes
you are so cool ${member.user.tag}
But how did that bot joined this server?
lmao
you really need git/github
you know how you def know its spam
its hard to use heroku otherwise
they say its not spam
member at dm? Really? lmao
i am creating a repository
rofl
i think its actually --cached
Believe
hold up ill check that
@hollow sedge dude pls dm i am unable to read here
well i actually already know but go ahead
no im not dming
Why are you "unable" to read here?
I think this guy doesn't speak english
@bright flame i have to go now, but you're close if you get your files on github
if no one is mentioning me i am unable to read it
and hopefully the others here can help you
I can help him with the github thing
what's the issue with it @hollow sedge quick b4 u go
Why?
he's trying to get his bot on heroku, heroku is deeply connected with git/github
wait i am unable to upload a folder
so rn hes just trying to get his files on github
in github
ya i have that
open the cli
i never used heroku
then
run
git config --global credential.helper manager
git config --global user.name "<your name here>"
git conifg --global user.email "<your email here>"
these 3 commands
my name or my project name
it says user.name so your user of course
hmm
tell me when you are done
damm
im finally done with all the easy sql
now time to deal with the levelign sql
now does your repository already exist?
ya
wait hold up
im back for a second
he never pushed it
and if you clone it
its just empty
wait a sec
NVM
you know what you're doing
im an idiot
he said it exists
thats a much better way of doing it
so I was gonna let him clone it then pull it
tbh I would just make a brand new empty repo and work from there
hk make a new empty repo with absolutely nothing
ya
im gonna teach you how to make repos and connect them with git now (youll need this in the future)
tell me when thats done
ya done
ok good
now go to the folder where you want that repo to be in the cli
cd path/to/folder
ya
done
run git status and show me the output
which file contains your token
yes
which* sorry
main.js
you'll probably want to make that not public yea?
its private only
still
best practice to keep sensitive information outside of main files
so I want you to make 2 files
.gitignore and .env
dude shall i connect after half an hour my dad forcing me to go
F
ah this is same guy still
damm just thinking abt leveling sql is giving me a headache
i feel like just leaving it for tommorow
I'll write the steps down so you can hold them
1. After you are done making those two files open .gitignore and write:
node_modules
.env```
`2.` When you are done this, run `npm install dotenv`
`3.` Make a file named `.env` in the root directory and write `TOKEN=your_discord_bot_token`
`4.`**open** your `main.js` file and write `require('dotenv').config()`
`5.` Write where your token is needed as `process.env.TOKEN`
`6.` open back the git cli and run `git add .`
`7.` run `git commit -m"Your commit message"`
`8.` run `git push origin <branch>`
`9.` setup finished. @bright flame
but i also wanna add more anime commands tommorow
anilist api > mal api

lmfaooo
but yea rn i searched up on top.gg
theres only one other bot
that has mal compatibility
MAL's API is still sort of in beta right
pepega
ah makes sense
AniList's API is also nice, but it's quite messy if you're using type-safe languages
Could be like -anilist (al) and -myanimelist (mal).
you could make them flags
flags would be kind of annoying to remember to type
ah right
the less arguments the better usually

I recommend you try it out
https://i.imgur.com/Uws8zVW.png made this in py if you want the source code (kinda of shit)
Home: https://anilist.co/home
Documentation: https://anilist.gitbook.io/anilist-apiv2-docs/
Interactive editor: https://anilist.co/graphiql
meh well there's more you can fetch I believe
yea I gotta add all of that
im prob gonna add a thumbnail
brrr
lmao this is from mal
thumbnail = there anilist pfp
tbh some websites will have an api and people will still webscrape 
yea
youtube 
most bcs the Google API is a nightmare
what does api stand for
Why it return false?
```
head.forEach((x) => {
if (x > defaultX || x < 0) {
console.log("Border");
let index = games.indexOf(ins);
games.splice(index, 1);
return true;
}
});
```let checks = checkDied();
console.log(checks);
wym there is no prefix
