#development
1 messages · Page 708 of 1
Have you tried
Yee
Does it work
I just give me a massive long error
Say error and wait for help
error
thats not an error
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
yes
One message removed from a suspended account.
I did look
Not so sure about ctx.bot there bud
voice_client is property of a Guild instance
is there a good like .htpasswd control panel, like, the ability to edit users typa thing etc, with grouped files to allow for rankings in nginx?
collection.findOneAndUpdateOne is not a function
it indeed is not
Anyone know why it returns Cannot read property 'guild' of undefined
@earnest phoenix what line?
You're not passing message to your play function
It does not update the message count to database: https://paste.discordrep.com/0ZMfpyqw2W.js
This happened after I update the dblvoting and donator specials. There is no errors in console.
Why are you using Messages.findOne() a second time
You already have it in MessagesUser
Kinda going back to my previous question, would the best way to implement a cooldown be storing ID’s in a list and then using setTimeout to remove them?
That could potentially be a big list.
I store timestamps for each command used in a SQL db, then check the time dif before each command.
Plus if it's a list, it won't persist through bot restarts (not sure how long of a cooldown you are needing)
I am making a music bot I have the join and leave commands I do not know how to go about playing audio commands can someone help me
@near ether Which language are you using?
make your bot be the only music bot with no audio
you'll get certified for being unique
yes
I’m using JavaScript
Ah rip, was going to provide some snippits
It is in python and I kind of wanted to do music not silence
I'm sure you can figure it out though
I'm really just looking for someone to point me in the right direction
https://google.com/ has been a big help tbh
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
it is not to me
@earnest phoenix ew use docs uwu
lol you find those on google too
@outer niche I searched on google and the first thing I found answers your question
just use google™
there is even video tutorials
just finished making my first ever bot on discord.js
that was a lot of stress
adding it on botlist now
lib for what
Like I said before it did not help
YT videos aren't exactly the best when it comes to discord.py
https://youtu.be/MbhXIddT2YY
Yeah it's this video
In this video, we create a command that allows our bot to play the audio from a YouTube video. I noticed my audio was quieter in my last video so I made sure...
And for some reason when he does it I did the same exact way and it's not working on my computer
That's an older version of discord.py
Like I have not already figured that out
:p
Which is why I have asked for help
But everybody keeps on pointing me towards Google which again is not helping me
Let me do something else
Let me point you to the docs https://discordpy.readthedocs.io/en/latest/migrating.html
Honestly though, migration docs are the best way apart from someone literally holding your hands and telling you what's there to fix
Lol I'm going to go find other people that can help me
That's just your laziness at this point
You are expected to be willing to put at least small effort into learning
If you have watch the video I sent it's not all about coding
Installing ffmpeg is quite simple
I have installed it
Just like most of audio stuff out there 
literally the docs have a search function too
^
I don't know that's just how he did in the video which is what I was trying to follow
Oh, for ffmpeg
yall
So I just need to do that
😳
what is the best way to store cooldowns across node processes
Wrong thing btw
i'm using ipc to communicate cooldown maps to other processes
You need cmd
but i'm worried it will eat memory
or huh
I'm confused on what I actually need to do here
You need to install ffmpeg manually
And that's what I'm having trouble with
I get it that's what you download it through but from there what do I need to do
Later you go to environment variables and slap in the directory you installed ffmpeg in
And that's what I've been trying to do but I can't get it to work
What's up
what do i need to do from hear
Do you remember the path where you installed FFMPEG?
???
did you install ffmpeg?

Oml yes
Then what's with the question marks
He just asked you if you remembered where you installed it
Why are you spoonfeeding
Are you talking about what drive I installed it to
The folder you saved ffmpeg stuff in
I just blinked
Yeah the folders called ffmpeg
@valid frigate if you need to store something across multiple processes, a better way would be to use a database, or an in-memory database if the data is volatile
You should see a folder "bin" in the folder "ffmpeg"
something like redis would be a good option
Enter that directory and copy the full path to it
Okay the full path seems to be C:\ffmpeg\bin for you
just add that in environment variables
Ok thx
bc you didnt send data to dbl regarding to your server count
download the dbl api and log into your token in a interval
How can i send them?
look the docs
looking a little but would have worked
its right here
{"error":"Oops, I think a bad happened, I'm trying again just hang in there"}
what the f
all of my errors will just say "oopsy woopsy uwu problem pwez fix" but thats just me
aight
I have a question too, anyone knows anything about pug.js and How can i pass a collected variable from the website to the script
bc im stupid
@willow magnet look the docs how to login and send stats before you ask please
^ we aren't gonna spoon feed
^
@earnest phoenix
Bots is ready and working in 40 servers with 23259 users!```
I didn't get a message
That count is posted
const dbl = new DBL('Your top.gg token', client);
// Optional events
dbl.on('posted', () => {
console.log('Server count posted!');
})
dbl.on('error', e => {
console.log(`Oops! ${e}`);
})```
I already installed dblapi.js
Does it takes any time to send the message?
no
I already added it there
client.on('ready', () => {
setInterval(() => {
dbl.postStats(client.guilds.size, client.shards.Id, client.shards.total);
}, 1800000);
});
could you scoll down
Oh lol
Wrong
you shouldnt need to postStats
dbl should automatically do that
every 30 min or so
if you provide your client to it
Types?
yes
it wont let me do pip install youtube_dl
pip install youtube-dl
How much does it takes to learn the basics of js ?
just learn instead of worrying about time
No haha I'm not worrying at all
will this work
test it and find out
Idk if it's a rule or not but if it's not - people should test their code first and try troubleshoot themselves first before asking here
readable
thos are the errars
How about reading the errors
i did
did you tho
ffs
idk wich one to fix
Idk if it's a rule or not but if it's not - people should test their code first and try troubleshoot themselves first before asking here
welcome to dbl, low iq people here tend to make someone else think for them instead of them trying to resolve it themselves first, a lot of people will just copypaste the error here without reading it lool
just obtain wide brain
That's the feeling i've been getting, yeah. I don't understand why people don't at least attempt it themselves before bothering to ask
seems as though its just copied and forgot to change client to whatever they defined it as

you shoud use dark mode tho
^
duz this mack more since
It would if you were on the older version of discord.py
0.16.12 had that too
discord.py rewrite has changed
Let's not get off the path and have unnecessary headache
what do i need to do to chang this
Read the docs
what
you don't know what you re writing
i guess not
What would I need to change this to because that is the older version I can't find the new version
what sort of intervals are suggested for clearing caches
Why don't you actually just https://discordpy.readthedocs.io/en/latest/migrating.html
Docs are helpful
we are practically spoon feeding him if we get any further
I looked at them but I'll look again
Not everyone's mindset is like that
everyone can code, but not everyone can program
some people just can't do logical thinking and resolve problems quickly in a logical way
I cannot find it in voice changes
python.__isbad
Depends why it is bad
And its a preference
hello
@earnest phoenix Do you think moving from Python to C won't be too bad?
c is a very old language
I cannot find it in voice changes @slender thistle
but, with enough effort you can always learn it
it will be weird moving from python syntax to c syntax but its possible
yeah, arduino is heavily based around c/c++
it's also a great way to learn the language through playing around
as you can have visual physical output
whats a good name for a less sensitive config sorta thing?
less sensitive config?
yeah like, right now in my config i have tokens, but also things like site links etc.
and i wanna move it to a separate config
then just combine the two at init
settings 
variables
is there a way to force a query param onto vote urls from the bot page
yes
Mind sharing archive of that stuff if you have one, cry
it's all in my brain 🙃
Idk what to do
I can read I'm not that dumb I don't know what to do to fix it
@outer niche try reading the thing line by line
I did
it doesn't have a singular guild property because your client can be in more than one guild
@outer niche did you read the last line
yes
bruh
so what do i need to do
have you read the error
yes i do not know how to fix it
If you don't know how, you should attempt it later with more knowledge imo
I linked the docs
multiple
shhhhhh that was on them to answer
i'm teaching basic english here
singular - there is only one - guild
plural - there are multiple - guilds
should get paid tbh 🙃
can someone help me with this error?
oh come on its the 2nd line and my js skills is shit
Still have not figured out how to fix it
k
yeah i realized that
yes
You better not copy the client secret :p
Both https://oliy.is-just-a.dev/lsp2l_1637.png and https://oliy.is-just-a.dev/dj4sf6_1636.png are simple errors
wait
I'll anime you
how nice would it be if people would just read
I dont even know py and I know what that first error is...
the only thing is is that its using the right login details
then regen your token
ok
are you using the bot or client token
make sure you're using your token, not your secret
Are you sure your token was copied properly
im using the token
@amber fractal They may be simple for you but for other people they may not be
It's in plain english...
regened token its still incorrect
bot has no attribute guild
all you have to do is read it.
in rare cases where your bot token spams the gateway, discord will manually reset your token as an anti abuse measure, check your email for that
And I still have no idea how to fix that even though that I've been working at this for 5 hours
So yeah not a simple error for me
sigh
Someone apparently needs a bit of python basics learnt
docs are a wonderful thing
yes
Yuh
i already explained this before but they keep on ignoring me
or they might have me blocked
most likely blocked
It means, in plainer English, the object, called 'Bot', has no property 'guild' (Bot.guild doesnt exist).
you can't use guild, it's singular and a bot can be in multiple guilds, therefore read the docs or make a logical decision to use the plural form of guild which is guilds
s
oh i just read his thing dont know why hes not listening to you
So basically I need to delete that
In this case, they need voice_client, attribute of a Guild instance
Which I linked before 
snipe
so this
jesus christ
i can't tell if this is trolling at this point how the hell do you have a bot dev role
a space is not needed
norole :p
i forgot those exist
@outer niche what are you using to make your bot
Python
Yes
Welp, that's straight up lies
How do you think of a fully functioning bot
Making a bot shouldn't be for beginners

I'm giving the solution for like the third time
your bot was most likely made in a bot maker lol
If only you knew basic Python
ye
cry those exist?
DBL is full of bots made with bot makers
yes
we don't accept, yet they're accepted anyways
sighs
why is this a thing
DBM is accepted
oh
no coding
i just took a look at their bot
that's the red flag you should read
poor command handling and basic commands which are a sign of a bot maker
so this
There's
no coding
Wait
It's not a function at all
where are you getting the parentheses from
Good Lord we got somewhere
this is the command
agenttToday at 12:36 AM
no coding
you'd be surprised how many people submit bots made over bot maker apps which have like 10% uptime loool
there's a difference between function and property
a function and a property*
@earnest phoenix my bot has been online in forever because i stopped coding and then i got back into it
I give up
and no, just no
This is what you get when getting to a not beginner-friendly library without learning the language first
I have learned the language
How much have you learned it
It is why I had developed over 50 bots
...
yet you can't logically figure out this?
they stole it from SO
ffs
That's also the one that appears in Lucas' video about music commands in d.py iirc
yes
split 50 commands per 1 token :wesmart:

Is it allowed to link several bots to a single code?
what u mean?
@earnest phoenix
Wait
Auth code?
Use several bots tokens on a single code
Example
4 bots discord on 1 code
i don't think so
Okay
actually i think u can
maybe
u just have to run that file with new clients
then change the token
what's the use case? i don't know why that'd not be allowed unless it was for abuse reasons
but it'd still not be recommended
The only thing that would change would be the prefix of each bot
It avoids using shards
um
so are you running 4 bots with the exact same code but with different tokens?
why not just shard lmao
that'd probably take up more resources than sharding
and would also cause problems with the bots communicating data back and forth
if you were running 4 different bots with different functions from 1 codebase that'd be different
but yeah don't do that
it likely wouldnt even work because people will invite over the bots server limit unsharded or not.
Note:
DON'T USE SEVERAL TOKENS IN ONE CODE
tho i doubt if this is your idea your bot will go anywhere
or just
note: use sharding, it'll help you
If you want better performance, thats the shards entire meaning.
because this is just dumb 
Shards dont give you better performance @earnest phoenix 
It just makes your points of failure smaller and more numerous
better performance then splitting multiple bots
Yeah, absolutely
i didnt mean in normal a normal situation
It's not even a real solution if im being honest
i meant from his perspective
that's what's being talked about
Yeah ik
sharding vs running several bots
I just wanted to clarify that sharding doesnt magically increase performance :p
no ikr
ahhh yeah
nikki you'd find a way to make sharding have better performance
lmao
why not just send git link
Because I don't have it anymore I only have the zip
4.02kb?
"an free sharded bot created on node.js whit discord.js"
U sure this guy legit?
shard.spawn(2);```
But if i want make
```js
shard.spawn();``` this is good?
A guide made by the community of discord.js for its users.
Okay ty
Is your bot in +/- 2000 guilds @earnest phoenix ?
No
:)
Its good to be aware of how it works but, like the topic says, under that amount of guilds you should wait.
But the sharding is interesing
Yep
if (command === 'stats') {
- return message.channel.send(`Server count: ${client.guilds.size}`);
+ return client.shard.fetchClientValues('guilds.size')
+ .then(results => {
+ return message.channel.send(`Server count: ${results.reduce((prev, guildCount) => prev + guildCount, 0)}`);
+ })
+ .catch(console.error);
}```
But just by looking at this example, I'd already be afraid of having to recreate the orders.
You'd have the same issue if you ran multiple bots though?
Many robots would not ask to have shards so it would be easier even if it would require more resources...
Would you not also have to aggregate the results of all the bots to produce a total guild count?
Yes
that'd just be even more difficult lol
Really?
yes
you'd have to do your own communication between multiple processes
and would be pretty much the exact same thing
Okay
sharding is real easy
using the sharding manager is a pain in the ass so if you're on master just use internal sharding
Lol "easy" for you
i had to rush shard my bot at 2400 servers and trust me, it took a bit
but it's not the end of the fucking world thing you can take it to be
you're just telling your bot to launch differently and replacing a bit of a code
most of the code replacement being broadcastEval only, like in the stats example
and with internal sharding now you just tell it how many shards to spawn and there you go nothing needs changing
also an 8 server bot is not worth sharding
honestly i'd argue that berry
All my bots have sharding code in them, which I can turn on using a feature flag
i have my new bot that's only in 15 servers sharded, it depends on the feature set
like for me i like sharding done early on bots that might have issues when you shard (such as with music)
having code set up to do it is nice but actually sharding at small servers is just dumb and leads to performance decreases
sharding doesn't affect performance at low levels
I didn't say I was going to do it, I'm going to repeat myself how many times to say I'm just interested? @slim heart 😑
you're only spawning 1 shard unless you're an idiot, so there's no difference there, and really it doesn't change much
the benefits outweigh the apparent 'disadvantages'
no i mean like spawning more than 1 shard lol
<2500 servers you won't spawn over 1
only reason I'd see sharding is to get ready for it
but using more than 1 shard for 2.5k is pointless like others said
I made my own sharding system that can mix external and internal sharding, to future proof my bots
Probably wont ever be needing it tho lul
But its good to future proof
Also, discord starts recommending shards at 1.5k
If you set your shard manager to auto, you will get two shards at 1.5k>
nternal/modules/cjs/loader.js:584
throw err;
^
Error: Cannot find module './config.json'
I am setting up files and folder like I have seen a lot of people doing on git hub instead of just dumping EVERYTHING into one .js file.
and I don't know if I am doing it right.
I have never done this before and I want to learn and not be told I am an idiot like I have by other people in different servers
./ means look in the same directory as the current directory of the file you are executing from
../ means go back one directory and look there
so chances are, config.json is not in the same place as the file you are executing that from
@jaunty stump ^
sorry. Just trying to figure it out
where should my config.json file go then.
if it is not working here?
that is fine, where is that line of code
Requiring the same file twice?
someone here said to have one with prefix
I am still confused and don't know if I am even doing things right
Well as pointed out above, '../' looks for one directory back as opppsed to your './' so it all depends where your files are located
You shouldn't need to require it twice. Use object destruction or set variables for that. I don't know why it'd say it's not found (seems to be same dir and package.json should be correct), but there seems to be a hint/notice under the first require. Does it say anything if you hover under it?
I believe it searches in a different directory first, I could be wrong
it says File is a CommonJS module; it may be converted to an ES6 module.
@sudden geyser
here are where all of my files are
tfw hentai.js
Unsure if this somehow causes your error but you're missing a semicolon at your second config require
it does not
The semicolon would not matter. I'm still confused on how the file couldn't be found, but the only stuff I've come up with is where your app could have been spawn.
Ye I'm not seeing the error either
Maybe it has to do with startup.bat (assuming it's something like nodemon) or your package.json
try making E-Bot -> e-bot. I don't believe you're allowed to have capitals.
doesn't change anything
no -
and it's never stopped any bot I make from stating
you can't have capitals or dashes in your package
noted*
(it's because npm and node modules can't use them)
npm supports - to my knowledge
yea
as for the code, I don't know. Someone else could possibly help. I'd try experimenting, but that's as far as I go
This is also the fist time I am trying this type of thing.
I usually just throw stuff into one .js file and go
sorry if im half blind but after doing this for a while i havent been able to fix anything, ive uninstalled and reinstalled the whole discord.js, uninstalled and reinstalled sqlite3 twice now, and it says its active, but wont start
then when I try to run npm install sqlite3 --save like it says, i get this
Idk the logistics behind bindings and raspi
Your best bet might be to use a pure lang database
@loud salmon I clicked on that channel. And I clicked the link. I see this
click on New Application to create a bot app
@loud salmon any chance you can help me with my error?
@tepid hedge u dont know node
barely
@loud salmon ok do u mind I can send you DMS?
oh
@soft gazelle my dms are open for a reason 
im going to bed hopefully someone @s me while im sleeping
Ok if I have a question I will message you
uh ok
@tepid hedge you are not installing the library to your local directory
https://gyazo.com/25b59619045886a24b729db2990a2d5d != npm i sqlite3 --save
i'm making a dashcam using a webcam and a rpi
a decent 1080p dashcam costs $199 aud so i can get a good 1080p webcam for about $80 locally and an rpi zero w costs $20 so then i just gotta work the logic, power and storage out
and my dad can cut out some sort of custom casing for it
thats pretty cool
but my question now is, what's the best way to go when you run out of storage? delete all and start again, record over existing, etc
it'll work out cheaper unit only and with a 128gb sd it'll be about $180
i am no expert, but either a way to delete videos older that x amount of time
or overwrite
circular buffer
i was thinking to delete all and start again unless you tell it to freeze data (ie. save it all and don't overwrite, after an incident)
what's that
anybody know swift ui its pain in the ass they change it every year
new swift updates every year
@eternal mesa so where exactly should I save it? I've installed to pi@raspberrypi as well
anyone got some reasons to consider switching from discordjs to eris?
Wait
Arent you the guy who made logger?
James bond right?
I use the bot to see the deleted messages lmao
Sorry, another basic stuff request, but how can I create an eval command for my bot?
?
wdym
I want to add my server to the site
but i don't know how to do it
Help me pls
click on the add server button and follow the instructions
oh k thats easy
Okey added but
throws back to the home page when I press here
Help me pls?
wait what is that
i dont make bots on phome
phone
click on the add server button and follow the instructions
^
I did them but it doesn't
@earnest phoenix
hm
Is the bot on your server?
(check the server)
No
Re invite the bot
invite me to ur server @earnest phoenix
I tried 3 times but it doesn't work @earnest phoenix
il do it for you
O
Invite us on the server
ye
@earnest phoenix ok
dm me
Samr
help me ?
Is that the same account used for the website?
@earnest phoenix
@earnest phoenix help !?
Server id
Your invite, xd.
whooo ?
Not this one
Maybe you've specify a server id
And the server is not referenced in dbl
okay thx
@earnest phoenix
The server must me on the list too.
And then you should have the ID of the page of the server.
For a unknow reason, my bot doesn't reply if the prefix is larger than one character (ex : $help works, but if I change the prefix to l!, l!help gives me an error message)
Note : nothing appears on the log
What do you use for the prefix?
Like char prefix or string prefix
If you use char prefix it's just one.
If you use string prefix you can pretty much use anything.
@earnest phoenix
Config.json
In your commandhandler
Error message
(prefix changed to lb$)
(I don't want to rewrite my bot entirely)
It's not a huge bug, but it's embarrassing
i refuse to help people that use glitch
don't mention people for help either
i am a bit confused, lol
why do you code in glitch?
Because I don't have money to have a vps
instead of js, .net, .py, e.g.
And it's Java
Do you have an edu mail?
.js files
no, that's javascript
java wouldn't run on glitch if you forced it
for that $50 to work you need to pay $5 off paypal or a card to verify yourself
yeah azure is fine, personally never used it though
meh
Alright, goodluck.
I would only use Azure for their Pipelines ci
I wouldn't even use it (at all) but if you don't have any money, its your solution.
i don't get the "i don't have money" argument
i can afford a cheap $10 vps off DO, it's only monthly
ye, you can easily get a vps for 5/10$
But if you're between 10 - 16 years old, there is a big chance your parents don't allow you.
Mine were always a bit difficult when it came to online expenses.
Under the age of 18 any bank account is required to be supervised by your parents, (atleast in my country)
some of the parents just don't like it when you make expenses for games, e.g.
paypal exists
Hm
My school email address didn't receive the verification email
So I've use my personal email adress
🙏
I know what to ask for Christmas
https://hastebin.com/fipihudeno.js why does this return undefined
you tell me
these make it return undefined
also, there is nothing async in there, you dont need to make it an async function
ah
@vital lark azure cool
azure is a disaster for people that don't run a company
it drained all of my student credits within 2 weeks and i didnt even use their services
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
4
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
it's on c
One message removed from a suspended account.
ok
One message removed from a suspended account.
DV’s right, I’ve encountered that with my pc having 2 drives and having that bug, Node is wack
or you can just add npm exe to your PATH variable
How can i send an Normal Message with an Embed?
d i s c o r d . j s
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
they have a neat example here https://discord.js.org/#/docs/main/master/examples/embed
@sage bobcat 10.15.3
why
i'm pretty sure they're talking about node
discord.js 10.15.3 doesn't even exist iirc
Oh i was talkin about node version
oh
11.5.1 i use for d.js
One message removed from a suspended account.
and that is relevant to the problem how again
@sage bobcat how lol
they're asking about embeds i think
One message removed from a suspended account.
One message removed from a suspended account.
node v10 is the current LTS version, its fine to use it
v12 should enter LTS sometime this year tho
maybe this month
when that happens, many npm libraries should move to v12 as well, and finally fix their v12 bugs (hopefully)
Hi
bye
What is the utility of npm i-- sfs ?
npm i-- is not a valid command
but it installs the sfs package
(if you remove the --)
the package hasnt been updated in 6 years, and barely has any documentation
I have already done it but thanks u as well 🙂
Anyone know how to add custom emoji to embed
lib?
oof
Anyone?
:name:id
@mossy vine i told him to move it here
@mossy vine @faint bridge it dosent work
use: :emoji:
u sure?
fuck
<
356831697385422848>
 example for one that my friend uses in his code
the a means its animated
:Thonk:
How can i get its id?
i told you
rip
My bot should be in this server to use it
ur bot is not -_-
yes, the bot has to have access to the emoji to use it
:weirdsip:

Yes
you might also not have nitro
thats why it doesnt work lol
lol
Ok
the emoji has to be in this server or you can have nitro to have other emojis
My dad dosent allow me to use pc after 8pm
in Python you would just call
emoji = bot.get_emoji(ID)
then in string you use that emoji
but ye just hardcode the string what do I know 🤷
bots already have nitro
they dont
unofficially
@cobalt umbra
i'm talking about getting the id of the emoji
they only have specific features users can only access with nitro
they can use animated emojis
they can see other emojis from other guilds and can use them no?
yes
:-
no
they cant
thats why i said they dont have nitro
On mobile
mobile is weird
wack
Weird means?
Weird means?
^
Ok
weird means strange, unusual, not normal
@quartz kindle ok
mr wikipedia comes in
😂
how would i check my bots permissions in a channel in Eris?
nope
how do I see on what server my bot got invited to?
listen for a guild create event
the guild object is passed in the guild create event
most libs will pass in a guild
what lib are you using?
yes
what language?
what coding language?
@earnest phoenix
not used the lib before but looks like this will tell you what servers your bot is in
https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=guilds
TextChannel#permissionOverwrites and Member#permission @mossy vine
Also like how did u do it all these days
And suddenly forget
does permissionOverwrites only contain the bots permission?
No it’ll probably hold something with the ID of user or role
or this?
yeah thanks
General rule of thumb... Eris has bad docs and even worse typings...
What I like to do is maintain my own bot framework that interacts with Eris
So you have to solve the problem once and never worry about it when working on another bot
eris docs aren't really bad lol
anyway it's mostly similar to djs aside from some stuff like perms
what is that screenshot of
no hint to language or anything
can't even tell if it's docs for a library or some site's api
@blazing saffron someone sent a link. You need some sort of website to run the webhook on.
Thx
anybody facing with sqlite3 not working properly?
@dusky marsh botum no workum. fixum?
sa
@earnest phoenix yep, your not the only one
I installed there and at pi@raspberrypi
sqlite3 is giving a error
And on the direct sqlite3 folder
con.run is not a function???
afaik sqlite bindings for node are kinda iffy on rpis
Ik
const sql = require("sqlite3");
const db = new sql.Database("bot.sqlite");
console.log("Initialized database connection.")
const tables = {
warnings: [
"id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL",
"snowflake TEXT NOT NULL",
"reason TEXT NOT NULL",
"warner TEXT NOT NULL",
"guild TEXT NOT NULL",
"time INTEGER NOT NULL"
],
bans: [
"id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL",
"snowflake TEXT NOT NULL",
"guild TEXT NOT NULL",
"unbannedAt INTEGER NOT NULL"
],
mutes: [
"id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL",
"snowflake TEXT NOT NULL",
"guild TEXT NOT NULL",
"unmutedAt INTEGER NOT NULL"
]
}
for(let table in tables) {
sql.run(`CREATE TABLE ${table} (${tables[table].join(", ")})`, () => {
console.log(`Initialized table "${table}".`);
});
}
module.exports = db
this code worked perfectly never had a error
This bot works fine on my laptop but when I put it on rpi it breaks
until sql.run is not a function
One message removed from a suspended account.
@sage bobcat show me
One message removed from a suspended account.
you using fs to read the json file?
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
that is I
what language?
One message removed from a suspended account.
twa



