#development
1 messages ยท Page 786 of 1
assuming you got no public IP ?
if so, then its as good as hidden token
if nobody can access the website anyways
yea
well u can run it local
but someone can inspect the dashboard page and find the token
^
you cannot hide it
even if you can
you will run into plenty more issues
with literally any visitor having complete control over it
what if i run a nodejs server
Do all that stuff backend
if you run a nodejs server you dont need "webbuild" of discord.js
for a dashboard you need a backend and a frontend part, there's no one over the other
^^^
oof
Bet I'll do it all in xmlhttprequests
the fuck are you looking at
wdym its someone's open sourced code
how is that related to what you are trying to do
well i can replace the token with "fake token" after login
i hope you're aware that whatever is exposed to the user is exposed to the user, they can see everything that's done, stop the execution, reverse eng. it
^
so no, you can't have a bot on the frontend
plus even if you log in, the user can now do anything with your bot
visible token or not
then whats the point of that web build lib
some people are idiots
who are you referring to cry
people who use the web build
lol thats what i want to ask
i mean why did the even make the lib at first
it's stupid
eg webhook sender things
you have to have an active connection to the webpage for it to run
which is dumb
at that point you could've just... made the app as a program
d.js isnt only for bots
i'm aware
@fiery stream, App name?
App name?
name
for what app
the app
what app tho>
no clue
@zenith orchid what app
This application
lorex

np
english only
he speaking turkish.
how would you require a module that was installed after the process was started?
deleting the node modules folder cache?
@copper cradle he says "are you Ping"
How r u gonna require it
You need to declare a variable and assign require(<Module>) to it
That means you need to write the file
well, try requiring it anyway from inside the program, might work, or not
@copper cradle eval
Uhh
GitHub app > lorex
Lorax
Trying to load a .py file that is in my bots directory, and it keeps saying ModuleNotFoundError: No module named 'mvce'
The .py file is named mvce.py
This error persists even after restarting
Located: ~/usr/botv2/cogs
File: ~/usr/botv2/cogs
How are you importing it
import mvce
Python at its finest
are you running the script from that folder as well?
What one exactly?
can i translate my python script to javascript or is it so different that i cant do it?
Tim.
Both languages are different but shouldn't be too hard
Legosi, print os.getcwd()
well you didnt say
Tim I don't think python2.7 is supported by any python lib for Discord 
rip jsk 0/10 never using
i wouldnt know, i dont use python lul, and i mean, node-gyp was stuck on python 2.7 for an awful long time
Didn't get an output.

What do i do?
Try to _ctx.send
Try to import cogs.mvce instead
the cogs folder.
And you're trying to import it
As the ownercog is there so it would look for mvce in the same folder
Just please do from cogs import mvce
Alright,
@slender thistle Getting a new error.
[Errno 2] No such file or directory: '~/usr/botv2/cogs/audio/ffmpeg/bin/ffmpeg.exe': '~/usr/botv2/cogs/audio/ffmpeg/bin/ffmpeg.exe'
There IS a folder with that name and all files ARE in that folder.
~/ is not the same as /
Yes,
~/ is the home directory, / is root dir
It had the same error when it was just audio/ffmpeg/bin/ffmpeg.exe in the file
you're getting confused how paths work in linux
wherever you're running the bot file
And i don't use Linux. It's expected
i told you what's the problem
you put your files in the root directory, not in the home directory
wait i said
@earnest phoenix now what huh?
[Errno 2] No such file or directory: 'audio/ffmpeg/bin/ffmpeg.exe': 'audio/ffmpeg/bin/ffmpeg.exe'
i told you to do ls ~/ and ls / to see the difference
yeah, but fix that if you can
I KNOW
...
The error isnt THERE
it just cant find "audio"
even though
its in the right place
it is.
dude
and you're being ignorant
AudioSegment.converter = "audio/ffmpeg/bin/ffmpeg.exe"
AudioSegment.ffmpeg = "audio/ffmpeg/bin/ffmpeg.exe"
AudioSegment.ffprobe ="audio/ffmpeg/bin/ffprobe.exe"
again
/ is not the same as ~/
and you keep confusing those two
and what you posted above isn't a valid dir
. . .
/ denotes the root directory while ~/ denotes the home directory for the current user
Thats literally how i got the file from @west spoke
and guess what
it works for Neko
and not me
y e s
...which you still haven't done
i have done that
did you see the difference
you put your files in the root directory
yes
and you're making your code search in the home directory
not anymore
what's the dir in your code
as i said
AudioSegment.converter = "audio/ffmpeg/bin/ffmpeg.exe"
AudioSegment.ffmpeg = "audio/ffmpeg/bin/ffmpeg.exe"
AudioSegment.ffprobe ="audio/ffmpeg/bin/ffprobe.exe"
uh, no
dude
you probably want to do ./audio/
it works for Neko, and guess what linux
just install ffmpeg through your package manager and run it like that
i have it installed
so when you run ffmpeg in your terminal does it output anything
ok
jesus c hrist
then why are you trying to reference the damn exe files in the first place
becAUSE thats what i got the file like
so you basically ripped it off of someone and now you don't know what you're doing
nice
explains a lot lol
neko must be running on windows
raspbian
let user = message.mentions.users.first() || message.author;
if(user.member.roles.find(r => r.id === "585940956352741403")){
var BoostInfo = "oui, ce membre est pas nitro boost"
}else{
var BoostInfo = "Non, ce membre n'est pas nitro boost"
}
if(user.member.roles.find(r => r.id === "632679453251600384") || user.member.hasPermission("MUTE_MEMBERS")){
var StaffInfo = "oui, ce membre est membre du staff"
}else{
var StaffInfo = "non, ce membre n'est pas membre du staff"
}``` UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'roles' of undefined
@earnest phoenix go-on, tell me how u would fix it
wanna bet you did
ill see
yes
well
it gave me
try providing an absolute path to it
wtf is user.member
yeah
did it work
nope
what did you set the path to
AudioSegment.converter = "/usr/botv2/audio/ffmpeg/bin/ffmpeg.exe"
AudioSegment.ffmpeg = "/usr/botv2/audio/ffmpeg/bin/ffmpeg.exe"
AudioSegment.ffprobe ="/usr/botv2/audio/ffmpeg/bin/ffprobe.exe"
well
despite what most think
E
[Errno 13] Permission denied: '/usr/botv2/cogs/audio/ffmpeg/bin/ffmpeg.exe'
how the f
run it with sudo
bruh
you owe me 50 bucks
im literally root
i am signed in as root
why would it not work
how could i run it as sudo, if its a .service
what
this is why you dont run your bot in root account
i can only use root ;-;
running shit with sudo doesn't mean you have to keep it open...?
you can create a new user
VPS.
then add it in sudo group
I said you can do it even on vps
vps dedi or whatever you think doesnt matter
i literally do not use linux
bruh what you use then
you could've solved your problems by doing a 10 minute google research
You dont get what i said
I just bought 3 vps and created a user account for those
i dont use linux on a daily basis
running things on root acc dont fix as much as they cause problem in my experience
and permitting root login is a bad practice
everyone gets the same
you need to work and customize it according to your needs
and one thing is adding a user with sudo rights
the bot works (kinda)
which is really easy and less than 10 minutes to do
ok
i just wanna get past the permission denied thats all
and i cant be asked to go thru with setting up new accounts
run your bot with sudo
yeah and what im recommending is to create a user account
it will have sudo perms to access root dirs
sometimes it fixes things that breaks on root
and what was the problem? the wrong dir.
cause you mess your permissions if you run things on root
sometimes at least
besides as I said, not because it works its ok
once your server pw is leaked and you login as root everytime
then you can say goodbye to everything
i can change it
yes bur after the damage is done
i have backups
and probably your vps is destroyed already
yes but how about the bot's servers
they can also nuke those the bot has perms on
๐ฉ
How would i know about GalaxyGate's servers?
rm -rf * and everything is gone
yes. i know that
thats why a 10 minute read
is better than why cause it works
I dont even use passwords on my servers
for double authentication login
crack the first auth, you still need sudo pw
they would still need the IP..
my servers are always being opened on port 22 just you know
Not a hard thing to get ahold of just sayin
arent they all?
0|xxx | at Object.<anonymous> (/root/xxx/Modules/GAwesomeClient.js:8:15)
0|xxx | at Module._compile (internal/modules/cjs/loader.js:1144:30)
0|xxx | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1164:10)
0|xxx | at Module.load (internal/modules/cjs/loader.js:993:32)
0|xxx | at Function.Module._load (internal/modules/cjs/loader.js:892:14)
0|xxx | at Module.require (internal/modules/cjs/loader.js:1033:19)
0|xxx | at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:70:39) {
0|xxx | code: 'MODULE_NOT_FOUND',
0|xxx | requireStack: [
0|xxx | '/root/xxx/Modules/GAwesomeClient.js',
0|xxx | '/root/xxx/Modules/index.js',
0|xxx | '/root/xxx/master.js'
0|xxx | ]
0|xxx | }```
well once your server got brute forced
How to fix it
you'll learn a 10mins read and effort is better
@earnest phoenix MODULE_NOT_FOUND..
you sure?
Yes
check again
Where to figure out
In your code?
ik
kinda yeah
lmao
what is your problem again? I cant see it discord deleted the chat for me.
0|xxx | at Object.<anonymous> (/root/xxx/Modules/GAwesomeClient.js:8:15)
0|xxx | at Module._compile (internal/modules/cjs/loader.js:1144:30)
0|xxx | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1164:10)
0|xxx | at Module.load (internal/modules/cjs/loader.js:993:32)
0|xxx | at Function.Module._load (internal/modules/cjs/loader.js:892:14)
0|xxx | at Module.require (internal/modules/cjs/loader.js:1033:19)
0|xxx | at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:70:39) {
0|xxx | code: 'MODULE_NOT_FOUND',
0|xxx | requireStack: [
0|xxx | '/root/xxx/Modules/GAwesomeClient.js',
0|xxx | '/root/xxx/Modules/index.js',
0|xxx | '/root/xxx/master.js'
0|xxx | ]
0|xxx | }``` @regal saddle
javascript?
Yes
What you tryna do?
Bot hosting
To?
From GitHub to vps
yeah obvs
Ubantu
Galaxy Gate
Alright.
๐ค
I use galaxygate
Same here
its not easy to set-up tho
i guess you should watch a yt vid
You're better of watching a video tutorial for it.
Would be easier 4 eveyone



before even trying a bot
I suggest learning basic linux security and commands
you also get the servers the bot is in on risk
lmao imagine caring about security
xDDDD
I dont want people to sniff on my eroges saved on my servers tbh
they might find my tastes
saya?
anyways
We already know your tastes
learn a bit of linux and it will get easier
bruh
do you want me to learn windows instead
windows didnt even need learning

idk
some people doin stuff on their pc and dont know what they are doing
you know what i mean?
Hm.
no
guess what

@earnest phoenix, you are not funny. This channel english onyl.
Uh could someone help me I am facing a problem I have no idea how to deal with
So I am hosting my bot using Node.JS and after a few hours the bot gets offline, but the process is still running
what language and lib
JS DiscordJS 
alright
heres my predicement
//function that loops in main class
public void nextTick() {
String example = "test";
InputGetterThing a = new InputGetterThing();
example = a.main(example);
nextTick();
}
//second class file which gets input from user
class InputGetterThing {
public String Main(String example) {
waiter.waitForEvent(SomeEvent.class, m -> {
return someBooleanCheckToFilterOutTheMessageYouExpect;
}, m -> {
this.example = "test2";
}, 5, TimeUnit.SECONDS, ()->{
event.getChannel().sendMessage("Timed Out").queue();
})
return this.example;
}
}``` We are trying to wait on user input before continuing to the next tick
How do I check the version
however the waiter seems to like spawn its own thread or something
cause it returns the original 'example'
Yeah but u still asked what lang
while waiting
Aight heading out
Hash64/64
Anyone have any reason why this might not be working?
const a = `{\n"title": "${title}",\n"color": 0x${hex},\n"thumbnail": {\n"url": "${thumbnail}",\n},\n"author": {\n"name": "${name}",\n"url": "${url}",\n"icon_url": "${url}",\n},\n"description": "${descript}",\n"footer": {\n"icon_url": "${uurl}",\n"text": "${uname}",\n},\n}`
msg.channel.send({embed:
a
})```
in correct formattinng
embed needs to be a RichEmbed or Object
most likely
I... think it's formatted right.
you could turn that string into an object with JSON.parse
How would I go about that?
JSON.parse(a)
assuming it wont have a stroke on the \ns
incorrect formatting is because its just a string
I added those thinking it might help.
So do I parse a, then send a? Or do I send parse(a)?
Riiight, except it won't quite work unfortunately.
embed cannot be a string
Okay, let me try parsing.
Okay, next up, as that looks like it's promising...
0x${hex}
That's how the user would input their color code.
SyntaxError: Unexpected token x in JSON at position 28```
That's the response.
Assume the input is something like 0xfa38bE
just dont do it that way
use the example I sent in picture
that would be easier and less trouble some
That hasn't worked in the past, to help you understand, I'm trying to create an embed in a command, handled by my command handler, and then send it later.
https://discordjs.guide/popular-topics/embeds.html#using-an-embed-object this for a complete rerence
A guide made by the community of discord.js for its users.
how does this thing work
do you cache it?
const a = `{\n"title": "${title}",\n"color": ${hex},\n"thumbnail": {\n"url": "${thumbnail}",\n},\n"author": {\n"name": "${name}",\n"url": "${url}",\n"icon_url": "${url}",\n},\n"description": "${descript}",\n"footer": {\n"icon_url": "${uurl}",\n"text": "${uname}",\n},\n`}```
Then later would be send with something like...
```js
msg.channel.send({embed:
a
})```
what do you mean by "later"
I did the whole \n thing to help someone understand what they requested.
For instance, in an on join event.
how do you store this letter a
and how the code looks
give more info so I can devise
client.on("guildMemberAdd", member => {
member.guild.channels
.find("name", guildConf.welcomeChannel)
.send({embed: welcomemsg})
.catch(console.error);```
That's roughly how it would be pulled.
and welcomemsg is...
welcomemsg = welcommsg.replace("$guild$", member.guild.name)```
Just a replace string.
What do you mean by that?
where is the original
No
The original is
{\n"title": "${title}",\n"color": ${hex},\n"thumbnail": {\n"url": "${thumbnail}",\n},\n"author": {\n"name": "${name}",\n"url": "${url}",\n"icon_url": "${url}",\n},\n"description": "${descript}",\n"footer": {\n"icon_url": "${uurl}",\n"text": "${uname}",\n},\n```
Then it replaces what it needs to, and then sends as an embed.
Theoretically.
where is that placed
{"title": "Yes",color: 0xffffff,"thumbnail": { "url": "https://frogmaster.xyz/qd1pJz3U"},"url": "https://cdn.discordapp.com/avatars/665786935251304468/99ef11142a7e4356ecdb329d1799e1c3.png?size=2048",},"author": {"name": "Frogmaster","url": "https://cdn.discordapp.com/avatars/177188299943837696/a_3117fa4909ccae45bb30810575e98dfa.gif","icon_url": "https://cdn.discordapp.com/avatars/177188299943837696/a_3117fa4909ccae45bb30810575e98dfa.gif"},"description": "Oh yeah","footer": {"icon_url": "https://cdn.discordapp.com/avatars/665786935251304468/99ef11142a7e4356ecdb329d1799e1c3.png?size=2048","text": "FrogBot"},}}```
That's the code it would actually pull.
Stable iirc
That shows that the replaces and whatnot are working.
It's just not sending it.
I've gotten it to do that.
const exampleEmbed = {
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',
},
{
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',
},
};
save.to.Database(JSON.stringify(exampleEmbed))
// on guild member add
const data = get.from.Database()
channel.send({ embed: JSON.parse(data) })
rewrite your code into something like that
where in the example embed, before you stringify it and save it to database, modify what already needs to be modified
then when youu need to send it, get it from database, then just JSON.parse() it
Okay, I'll tweak
edited it a bit
const embed = {
title: title,
color: `0x${hex}`,
thumbnail: {
url: thumbnail,
},
author: {
name: name,
url: url,
icon_url: url,
},
description: descript,
footer: {
icon_url: uurl,
text: uname,
},
}
msg.channel.send({embed: JSON.parse(embed)})```
That's the code
SyntaxError: Unexpected token o in JSON at position 1```
That's the error
did you stringify it first before parsing it
you cant parse it if you didnt json.stringify it first
Oh
or if you dont need to save it on db
Didn't know, where do I put that?
just do ({ embed })
Oh by the way, this is a dummy command, that's why I'm doing it like this. Once I know it'll work after saving and pulling, then I'm putting it in the real command.
JSON.stringify() and JSON.parse()
I missed it
Same error, new code:
const embed = {
title: title,
color: `0x${hex}`,
thumbnail: {
url: thumbnail,
},
author: {
name: name,
url: url,
icon_url: url,
},
description: descript,
footer: {
icon_url: uurl,
text: uname,
},
}
JSON.stringify(embed)
msg.channel.send({embed: JSON.parse(embed)})```
It doesn't like my o, and I have no idea what it means.
ooo
I see what I did wrong, but now that's what's new.
you are not saving the stringified data
make it a variable
const b = JSON.stringify(embed)```
yes
then on parse it on embed
However, I get the object object thing
then parse that variable
const b = JSON.stringify(embed)
msg.channel.send({embed: JSON.parse(b)})```
This is the code that did that.
Ooo
I see the error though, it's finally throwing errors
It doesn't like my color
hahahaha
convert it to int
๐
Thank you so much! Time to play with it
I never knew of the parse command, so that helped a ton

json stringify returns a value but doesn't change the object itself
That makes sense.
this is why you needed to make it in a variable
I was struggling to make it work, I console logged it and it looked right, but no where on google had any reason why it wasn't working haha.
That it tends to be
Well, it had good hopes hahaha
I ran into another issue.
member.guild.channels
.find("name", guildConf.welcomeChannel)
.send(JSON.parse(welcomemsg))
.catch(console.error);```
That's the code that pulls the message
welcomemsg is js {"title": "Yes",color: 0xffffff,"thumbnail": { "url": "https://frogmaster.xyz/58J0k9hK"},"url": "https://cdn.discordapp.com/avatars/665786935251304468/99ef11142a7e4356ecdb329d1799e1c3.png?size=2048",},"author": {"name": "Frogmaster","url": "https://cdn.discordapp.com/avatars/177188299943837696/a_3117fa4909ccae45bb30810575e98dfa.gif","icon_url": "https://cdn.discordapp.com/avatars/177188299943837696/a_3117fa4909ccae45bb30810575e98dfa.gif"},"description": "Yes","footer": {"icon_url": "https://cdn.discordapp.com/avatars/665786935251304468/99ef11142a7e4356ecdb329d1799e1c3.png?size=2048","text": "FrogBot"},}}
Okay
Uhhh, so I was big dumb and forgot to upload it.
So it was still the old code hahaha
This is the new error that I'm hitting.
This is what it's trying to send.
msg.channel.send(`welcomeMessage has been changed to:`);
var hex = parseInt(msg.content.replace(/^#/, ''), 16);
const embed = {
title: title,
color: hex,
thumbnail: {
url: thumbnail,
},
author: {
name: name,
url: url,
icon_url: url,
},
description: descript,
footer: {
icon_url: uurl,
text: uname,
},
}
const b = JSON.stringify(embed)
msg.channel.send({embed: JSON.parse(b)})
client.settings.set(msg.guild.id, `${b}`, `welcomeMessage`);```
That's the code that does that response.
So, why is it an empty message?
you are fetching an empty data

probably from guild create
So I'm js console.log(welcomemsg)
Doing that, and this is what it gets:
{"title":"yes","color":null,"thumbnail":{"url":"https://frogmaster.xyz/EnbFnQMC"},"author":{"name":"Frogmaster","url":"https://cdn.discordapp.com/avatars/177188299943837696/a_3117fa4909ccae45bb30810575e98dfa.gif","icon_url":"https://cdn.discordapp.com/avatars/177188299943837696/a_3117fa4909ccae45bb30810575e98dfa.gif"},"description":"yes","footer":{"icon_url":"https://cdn.discordapp.com/avatars/665786935251304468/99ef11142a7e4356ecdb329d1799e1c3.png?size=2048","text":"FrogBot"}}
console.log(welcomemsg)
JSON.stringify(welcomemsg)
member.guild.channels
.find("name", guildConf.welcomeChannel)
.send(JSON.parse(welcomemsg))
.catch(console.error);```
I tried that, and no luck either.
For some reason, it just thinks it's an empty message, when clearly the console.log says otherwise.
Wait
Darn, I thought I figured it out.
I forgot to do embed: in the send.
..Okay, I'm stupid. Thank you all for all your help.
That was the issue, I forgot to do .send({embed: JSON.parse(welcomemsg)}), and then I forgot to upload it...
Y'all are amazing ๐
https://frogmaster.xyz/kRw41fTw My replace functions work perfectly. Thanks again.
How Can i cache messages for using addreaction event in discord.js
cache messages sent before client loginned
ig store message Id's
most people tend to use the raw rection event
because the payload includes message id
cant you get the message id from a reaction object
which allows u to compare to stored messages
yeah
How do I upgrade the bot to discord.js v12?
it gives an error
which you were told how to fix
yes
anyways am off
install git
restart your pc and try again
ok
Anyone know good Postgres module for C# with pool? I tried to use Npgsql, but this pooling is not what I want
any good tutorials/guides how to use the sqlite database with JavaScript?
a connection pool is maintaining several active connections to a database for multiple concurrent operations
@uneven wyvern use an sqlite library or driver
for example, sqlite3 (async) or better-sqlite3 (sync)
sqlite3
sqlite3 is probably the most hardest database i ever used
sql is bringing another language into your project for headaches
honestly i just prefer mongodb
easier
sqlite is a pain in the ass because it lacks half of the features server databases have but nontheless it's a good database for small projects
orms exist
i always use ORMs now
i can just focus on designing my entities and the rest is done for me
fair
ORMs are very nice
hmm
does anyone know
if its possible in python
to take a bytes object
and dump it to string
you mean convert bytes to string?
<bytes>.decode("utf-8") iirc
str(bytes) 
turns out it is legit just as simple as doing bytes.read()
that works
How can I do that every 4 letters the text get splited by a -?
im not sure how to do it efficiently but u could use for loops
pretty sure there should be a more efficient method
or maybe str.match(/.{1,4}/g).join('-')
client.guilds.forEach(g => {
console.log(g.owner.user.id)
})
TypeError: Cannot read property 'user' of undefined
owner is not cached on large guilds
^
sometimes*
g.fetchMember(g.ownerID).then(console.log)
how can i create a new id once someone downloaded my npm module?
i have a command which you need to tag someone, but if i don't tag someone the bots crashed says: Cannot read property 'user' of null
i already tried to add if commands or return but still he says it
let user = message.mentions.users.first() || message.author
it's discord.js btw
so if no user has been Pinged it will fallback to the message author
user is not defined -_-
code?
oh fixed it already
lol
lmao
but still thanks for the code
Always
I was testing a kill command and the bot did not respond, so i was wtf and it was he cannot read the property of user
but now it's fixed
thanks man
if you have a question pls ask it
is there something in documentation for anti server griefing
what do you mean?
How would I make a few <div> in a <div to be in same line
They're now displayed in lines
They're like this now
hi
bye
hibye```
I want them to be
hi bye hibye
is it installed in the correct directory
@grave mist thats not rlly how u use divs
I'm using it for navbar tbh
Building my bot's website where 1 div occupies name, logo at left, 1 div occupies links, 1 div for dashboard
check your package.json to make sure it's actually installed
Can anyone help me how to setup lavalink node
download lavalink
fill out your details in config
run lavalink
See what what to fill
you can't run lavalink on glitch
it's way too heavy
I'll on vps
For testing here
glitch can't handle a lavalink server and your bot at the same time
i don't even think it can handle a lavalink server alone
Just help me I'll shift to my vps
follow their docs respectively
sqlite isnt that hard to set up
their tutorial is legit simple af
{'name': 'Gegegenokitaro', 'url': 'http://www.crunchyroll.com/en-gb/gegege-no-kitaro/episode-91-the-misty-night-of-angkor-wat-792726', 'release_time': '2:30', 'episode': '91'}
{'name': 'Borutonarutonextgenerations', 'url': 'http://www.crunchyroll.com/en-gb/boruto-naruto-next-generations/episode-142-a-test-of-willpower-792537', 'release_time': '9:00', 'episode': '142'}
{'name': 'Keepyourhandsoffeizouken', 'url': 'http://www.crunchyroll.com/en-gb/keep-your-hands-off-eizouken/episode-5-an-iron-giant-appears-792451', 'release_time': '18:30', 'episode': '5'}
{'name': 'Ifitsformydaughteridevendefeatademonlord', 'url': 'http://www.crunchyroll.com/en-gb/if-its-for-my-daughter-id-even-defeat-a-demon-lord/episode-12-the-young-girls-wish-793454', 'release_time': '20:00', 'episode': '12'}```
wew
search
^
literally google search for sequelize docs

sudo it
Mean
@earnest phoenix
what
What to sudo
Command
sudo the command you just ran
lol
Hey. I need help. I have a music bot. And if you force him out of the channel (not by the command), he no longer enters the channel. discord.js
show code
module.exports.run = (client, message) => {
const channel = message.member.voiceChannel
if (!channel) return;
channel.join().then(connection => {
console.log("Successfully connected.");
}).catch(e => {
console.error(e);
});
}```
Uh
@thorn nexus i think use interval. Check channel user size.
and what will it give?
The channel size
Ex: if (channelUSERSSIZE = 1) {
//exit
}
I am not talking about that
if the bot is forced out of the channel (without using the command, but using the button disconnect the user from the voice channel), then the bot will no longer enter the voice channel on this server
how can this be fixed ?? or how to force a bot to enter the voice channel with a 100% chance
do you get any error on console?
try calling leave on the voice channel first before joining
that should reset the state that's cached in the library
@earnest phoenix
Which discord.js version?
@zenith orchid
wrong thing
they dont have access to the connection object... when there is no connection
I guess I misunderstood.
{'type': 'daily_update', 'url': 'https://www.crunchyroll.com/simulcastcalendar?filter=free'}
[09/02/20 | 18:06:00] Starting a new task
{'type': 'daily_update', 'releases': [{'name': 'Gegegenokitaro', 'url': 'http://www.crunchyroll.com/en-gb/gegege-no-kitaro', 'release_time': '2:30', 'episode': '91'}, {'name': 'Borutonarutonextgenerations', 'url': 'http://www.crunchyroll.com/en-gb/boruto-naruto-next-generations', 'release_time': '9:00', 'episode': '142'}, {'name': 'Darwinsgame', 'url': 'http://www.crunchyroll.com/en-gb/darwins-game', 'release_time': '17:00', 'episode': '2'}, {'name': 'Keepyourhandsoffeizouken', 'url': 'http://www.crunchyroll.com/en-gb/keep-your-hands-off-eizouken', 'release_time': '18:30', 'episode': '5'}, {'name': 'Ifitsformydaughteridevendefeatademonlord', 'url': 'http://www.crunchyroll.com/en-gb/if-its-for-my-daughter-id-even-defeat-a-demon-lord', 'release_time': '20:00', 'episode': '12'}]}
Sending Outbound response to Release.
[09/02/20 | 18:06:00] Returning Selenium_1 to free drivers, task complete
{'type': 'release_get', 'url': 'http://www.crunchyroll.com/en-gb/if-its-for-my-daughter-id-even-defeat-a-demon-lord', 'name': 'Gegegenokitaro', 'episode': '91'}
[09/02/20 | 18:06:01] Starting a new task
{'type': 'release_get', 'name': 'Gegegenokitaro', 'episode': '91', 'image_url': 'https://img1.ak.crunchyroll.com/i/spire1/51e9283b8ebb3d798076c1860a561e9f1562249422_full.jpg', 'view_link': 'http://www.crunchyroll.com/en-gb/if-its-for-my-daughter-id-even-defeat-a-demon-lord', 'review_url': 'http://www.crunchyroll.com/en-gb/if-its-for-my-daughter-id-even-defeat-a-demon-lord/reviews', 'rating': '4', 'desc': "Dale is a well-known and highly skilled adventurer despite being so young. One day, he's on a quest and goes deep into the woods and finds a"}
Sending Outbound response to Release.
[09/02/20 | 18:06:01] Returning Selenium_2 to free drivers, task complete```
reee
its spawning two tasks
but why 
yo men
can someone give me example of proper use of klasa with kurasuta? (js)
always gettin js Uncaught Promise Error: TypeError: manager.client is not a constructor

Although my bot is active, inactivity was rejected
you have to have a good uptime and the bot needs to be up at the time of review
Already the bot is active since the application
@modern sable
Bot has been active since application but not accepted from inactivity
okay
so what i'm trying to do is make 5 different computers send a .wav file to eachother
to eventually end up in my room
but
since when did this happen
and im running it as administrator
@elder yoke https://top.gg/bot/new
does anything else have the file open
not that I know of
hm
out_file = open("tci.wav", 'wb+')
shutil.copyfileobj(resp, out_file)
out_file.close()```
would that conflict with itself?
i don't do python so i wouldn't know
@west spoke you cirrect me if im wrong but you cant do 'wb+' 'wb' does the file creation anyway
'wb' creates the file anyway
shrug
Anyone has an idea how I could create a new Id once a user created a new Account?
wdym
Hello all. I am working on a project that will simplify bot hosting for Discord bot developers. I am needing more information to for me to continue the development of it. If you don't mind, can you tell me what language you program your bots in and what other packages you run with it. Example: I use Discord.Js and usually run Redis, MySQL, MongoDB for my databases. I also use API's mostly Twitch API or Mixer API. The more info I have the better I can make the platform ๐ Thank you for your time and feedback ๐
hope this helps
what the fuck do I EVEN DO
๐
@marble juniper so like every time someone created an account on my site that the user gets its own id what is generated randomly
do you want long or rather short ids
18 characterd long
how would I save it so that the user can access his account data and id?
you save the id you generated either in a database or a file or whatever
i save it in a db, but yeah how would the user would access it?
well
make it so he can request the data out of the database
like the bot giving an id and maybe some access token
idk
I don't have a site yet, i use only my piece of code rn. So I can try some things out
so you want to make an id for every new account on "your site" and then also want the user to be able to access it
with express you would just use a path like
"/user/:id"
id would be a parameter
with the id you just made
and maybe you can then load an html or something which prompts you for a password
and then if it is correct let the user access his data
you get what I mean
Yeah
im a bad dev
i suggest using twitter's snowflakes system for ids
twitter has ids
@marble juniper well what am i then lol
a dev
a very bad dev
well whatever with accessing data and such you should probably use express since its for a site anyway
Ok
Ok
what does "fake" mean for alt definer
Or maybe some more info if it is related to programming a bot
??
<div>
<div>
<li class="live-feed-1">
Stay upto date with all the latests news and developments with anime and crunchyroll with Crunchy's live news webhook feed!
<img src="https://i.imgur.com/wd8Kf3c.png?3" title="Get Live News and More" />
</li>
</div>
<div>
<li class="anime-details">
<img src="https://i.imgur.com/q51rq46.png?1" title="Get Anime Details" />
Want to show off your favourite anime to your friends? Maybe you just want to look up an anime you've heard about.
We've got you covered! using the "AnimeDetails" command anything is possible!
</li>
</div>
<div>
<li class="anime-search">
Want to look for a list on animes or related things, like voice actors, groups and other shows?
Look no further than the "Search", "Manga", "Group" commands. This will try find you the top 5
results to your search query! Give it a try with "-search Darling in the Franxx" and see what comes up!
<img src="https://i.imgur.com/0uS5Q4A.png?1" title="Search for animes" />
</li>
</div>
</div>```
anyone got any reccomendations
for making that
well
make the text go inline with the image in a block
because CSS decides it no likey correctly
what do you mean
and you want the text to be besides the pic?
yh
one option is to use float
float: right
float: left
on the img
another option is to put them in separate tags, and give each tag display: inline-block and width: 50%
another option is to use grid or flexbox layouts
put overflow: hidden on the parent element
if you use floats
in either case its better to keep imgs and text in separate elements
<img src><p>text</p>
anybody able to help me rq?
?? @copper cradle
@earnest phoenix explain that question you asked
what does "fake" mean for alt definer
i had someone that invited 7 and it said
is there a way in javascript I can see what the result for evaling a certain code is before actually evaling it
like seing the output before it actually executes the code
@earnest phoenix ask in their support server
@marble juniper how are you going to see the result before executing it?
@Jeremy Cricket#0740 idk & this isn't the channel nor the server to ask
i joined the discord tht was on the site it has this one linked
can one of u link me their serber
i dont know what bot you're talking about, but go to its page, and click "join support server"
I just want to prevent that you can get the bot token with eval
then just manipulate the result before sending the result
or manipulate the string before evaling it
No it doesn't
You clicked the wrong link
Dbl should remove that join discord button from the top bar
It leads to stupid problems like tis
No it doesn't
but how do I manipulate it
I mean you can make another variable which is another variable
@marble juniper do you want to make a public eval command?
if so, you should run it in a safe container
for example, a child process
what are you gonna use it for?
well, securing an eval command is a complex thing
the only way to protect it is to run it in an isolated environment
with all I/O disabled
.anime-details, .live-feed-1, .anime-search {
display: inline-block;
}
img {
display: inline-block;
}
<div>
<div>
<p class="live-feed-1">
Stay upto date with all the latests news and developments
with anime and crunchyroll with Crunchy's live news webhook feed!
</p>
<img class="live-img" src="https://i.imgur.com/wd8Kf3c.png?3" title="Get Live News and More"/>
</div>
<div>
<p class="anime-details">
Want to show off your favourite anime to your friends? Maybe you just want to look up an anime you've heard about.
We've got you covered! using the "AnimeDetails" command anything is possible!
</p>
<img class="details-img" src="https://i.imgur.com/q51rq46.png?1" title="Get Anime Details"/>
</div>
<div>
<p class="anime-search">
Want to look for a list on animes or related things, like voice actors, groups and other shows?
Look no further than the "Search", "Manga", "Group" commands. This will try find you the top 5
results to your search query! Give it a try with "-search Darling in the Franxx" and see what comes up!
</p>
<img class="search-img" src="https://i.imgur.com/0uS5Q4A.png?1" title="Search for animes"/>
</div>
</div>```
Tim im confused about how to align this all
.anime-details, .live-feed-1, .anime-search, img {
display: inline-block;
width: 50%;
}```
open it in the inspector and play around with the width, padding and margin
hey i have a lil question for binary,
binary: 11001 =
translated: 240?














