#development

1 messages Β· Page 363 of 1

uncut slate
#

issue probably lies elsewhere if that returns properly

trim plinth
#

Is there any other npm modules that can run your bot in the background (basically just keeping your bot on 24/7)

uncut slate
#

nodemon

#

but I would suggest pm2, if it's not working for you it's very likely a case of PEBCAK

trim plinth
#

I tried nodemon, it didn't keep it running.

#

But for now, I'm going to try nodemon.

#

Aaaand nodemon isn't working for some reason. Great.

uncut slate
#

I can't help you if you don't give me any error outputs πŸ‘€

trim plinth
#

Ok, here is the error output for pm2:

#

pm2' is not recognized as an internal or external command, operable program or batch file.

uncut slate
#

lul

#

you just didn't install it right

#

What happened when you ran npm i -g pm2?

trim plinth
#

I installed using npm install pm2 -g, second attempt with npm install pm2 --save, then last npm i -g pm2. They all gave back the same message.

uncut slate
#

which is

trim plinth
#

pm2 is not recognized as an internal or external command, operable program or batch file.

uncut slate
#

that's the output of npm i -g pm2?

trim plinth
#

yes.

uncut slate
#

no it's not

#

πŸ€”

trim plinth
#

Lemme try again

#

Ok it's redownloading again, trying npm i -g pm2 again

#

the warns: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\pm2\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

heady zinc
#

ignore that

trim plinth
#

ik

#

Let's see if it'll run now

#

"'pm2' is not recognized as an internal or external command, operable program or batch file." RRREEEEEE

rich kiln
#

run the cmd as administrator .

heady zinc
#

actually yeah

#

run terminal as admin

#

or sudo it

#

whatever

trim plinth
#

ok

rich kiln
#

win32
sudo it zoomeyes

trim plinth
#

Ok, so now I'm running cmd through admin, through system32 instead of my user. Correct?

rich kiln
#

yeah

trim plinth
#

It should say C:windows/system32

#

right?

heady zinc
#

that's just the path of where you currently are

trim plinth
#

k

rich kiln
#

just.

heady zinc
#

you don't really care since the install you want to do is global

rich kiln
#

install it.

trim plinth
#

OK OK

#

I'm just pissed that for some reason nodemon stopped working

heady zinc
#

just install pm2 right and you'll be fine

trim plinth
#

oml

rich kiln
#

maybe its a PATH probl

trim plinth
#

'pm2' is not recognized as an internal or external command,
operable program or batch file.

heady zinc
#

well

trim plinth
heady zinc
#

your os must be fucked at some point

#

probs some of your settings idk

rich kiln
#

yeah its a path problem

trim plinth
#

hm

#

wait

#

I think ik why

heady zinc
rich kiln
trim plinth
#

I think I might've fixed it

heady zinc
trim plinth
#

yeah, but I just deleted the path that was causing the problem, as nodemon stopped working right as I set this shit path

#

so I'm crossing my fingers that my computer isn't fucked

rich kiln
trim plinth
#

REEEEE

#

ok

#

maybe

#

just maybe

#

my computer doesn't like pm2

#

lets try nodemon

heady zinc
#

ur computer doesn't like anything tbh zoomeyes

trim plinth
#

my computer is fucked probably

pale light
#

it just needs to warm up, preset your oven to 400 C

#

then cook it

trim plinth
#

I hate life

#

I'm calling it

#

my computer is broken

hallow harness
#

are you using windows @trim plinth

trim plinth
#

nyes

hallow harness
#

solution: get a mac

trim plinth
#

boi

#

the only mac in the house is not allowed to be touched

hallow harness
#

i got all kinds of shit errors when i used windows to develop

inner jewel
#

i never had any issues on windows

#

besides when using natives

#

because micro$oft is retarded

trim plinth
#

thats because you know what you are doing b1nzyhyperban

heady zinc
#

windows is fairly the worst of the 3 "big" OS to develop, however as long as you don't fuck up you won't run into much issues

hallow harness
#

i had issues with like every damn framework i tried to use

uncut slate
#

I never had any issues back when I was still on windows, but linux is VERY NICe for dev

inner jewel
#

winblows

heady zinc
#

winbaguette

trim plinth
#

I am planning on getting a mac later on in life anyways

inner jewel
#

i've had zero issues with "serious" projects on windows

trim plinth
#

only problem with mac is that pricetag

#

:(

heady zinc
#

i didn't really got any too

inner jewel
#

aka not random proof of concept things i tried to do which i didn't even know if they were possible

trim plinth
#

Actually

#

we need a vote

heady zinc
trim plinth
#

Which major OS do you use? (react with Windows = πŸ‡Έ, Linux = πŸ‡², Mac = πŸ‡­ )

prime cliff
#

No just no kill mac

hallow harness
#

u mean windows

heady zinc
#

^

glossy sand
trim plinth
#

k

cerulean zinc
#

Anyone know how to generate charts/graphs in NodeJS?

trim plinth
#

dunno

earnest phoenix
#

Can anyone here tell me how I would go about a queue system in C#? (I don't want to be spoonfed, I just want like an idea on what to do)

austere meadow
earnest phoenix
#

ok, thank you so much

austere meadow
#

no problem :)

earnest phoenix
#

wait

#

and

#

so I need my bot in 100 servers for certification

heady zinc
#

no

austere meadow
#

yeah

heady zinc
#

wait do you

austere meadow
#

that's a new rule they made @heady zinc

heady zinc
#

wahh

austere meadow
heady zinc
#

got certified when the rules were so much nicer

earnest phoenix
#

yea

#

that was new today

heady zinc
#

but i guess that make sense since certification's queue tends to be huge

earnest phoenix
#

feelsbadman

austere meadow
#

yeah

earnest phoenix
#

what about a queue process?

#

do you think that would work?

austere meadow
#

what do you mean?

earnest phoenix
#

Help I need an ID

#

please

#

@steel heath

#

Discord.JS
Node.JS

Simple Command with response.

#

if (msg === prefix + 'COMMANDNAME') {
message.channel.send 'RESPONSE'
}

#

what?

#

.

heady zinc
#

doesn't even work bloblul

earnest phoenix
#

Mine?

#

Im sure mine works.

heady zinc
#

lol no run that vanilla and it wont

trim plinth
#

@earnest phoenix m8 search on youtube how to code a bot, if you don't know how to get a bot ID, you need some help

earnest phoenix
#

I said Discord.JS

trim plinth
#

ye no

heady zinc
#

=>msg is not defined

#

=>prefix is not defined

#

=>invalid syntax at message.channel.send 'reponse'

earnest phoenix
#

ok i need some help

#

Well. Their is other code you need.

trim plinth
#

here is a proper line if you want your bot to respone to a text command:

heady zinc
#

therefore your code is wrong and anyway nobody needs it so you don't have to post it here

austere meadow
#

@earnest phoenix it's pretty clear you don't know what you're doing, that's fine.
you can look up tutorials online on how to code basic javascript, such as anidiots.guide or other youtube tutorials

earnest phoenix
#

.

trim plinth
#

``bot.on('message', function(message) {

if (message.author.equals(bot.user)) return;

if (!message.content.startsWith(prefix)) return;

var args = message.content.substring(prefix.length).split(' ');

switch (args[0].toLowerCase()) {

    case '[command name]':
    message.channel.sendMessage('[text here]'); 
    break; } `` this is for a basic text reply command,
#

also you'd need to define other stuff

earnest phoenix
#

Mhm.

heady zinc
#

still don't see the point of posting your code here Thonk

trim plinth
#

yeh

heady zinc
#

there is hella lot ways to make a reply

earnest phoenix
#

Could I post my Purge Code?

heady zinc
#

it heavily depends on the bot command handler

trim plinth
#

everyone here knows how to code so it has no purpose here

heady zinc
#

can be somewhat useful to beginners like vandereem

#

but yeah

trim plinth
#

and everyone has mostly different ways of how to execute commands in code

#

so I suggest searching up a tutorial on yt

austere meadow
#

^

trim plinth
#

thats how I started

heady zinc
#

anidiotsguide are good tutorials

#

i recommend them

trim plinth
#

ye

austere meadow
#

i wasn't trying to be rude vandereems, it's just best if you have knowledge of javascript before trying to dabble with libs and stuff

heady zinc
earnest phoenix
#

?

trim plinth
#

eh

heady zinc
#

don't put copy pasted code you don't understand here

#

really

#

don't

trim plinth
#

uh..

#

yeh thats uh

earnest phoenix
#

nvm

#

Noone understands

austere meadow
#

just look up a tutorial online vandereems

earnest phoenix
#

IK How to coed.

#

code

heady zinc
#

i think he's been trying to show off this whole time

earnest phoenix
#

.

austere meadow
#

you need to understand what you are coding before you can use discord.js

heady zinc
#

but didn't understand we all noticed he copy pasted

trim plinth
#

no offense but posting errors in chat is kinda bad practice

#

I suggest putting it in console, not chat

earnest phoenix
#

To be honest

#

@heady zinc I didnt copy it from a website.

heady zinc
#

ofc you did

trim plinth
#

you could of easily copied it into your script y'know

#

not just into chat

earnest phoenix
#

Its even labeled for noobs.

heady zinc
#

the simple fact there is that much comments

#

even though the code is without command handler

#

proves it

#

actually copy pasted comments

trim plinth
#

yeah, that actually kinda sells it. if this was your code, you wouldn't put so many comments like it was for someone to learn from

#

nobody else will see the code soo

earnest phoenix
#

I wanted to put it up for noobs out their.

heady zinc
#

but you're the noob

trim plinth
#

why? nobody sees your bot code

earnest phoenix
#

Don't think so.

heady zinc
#

really

#

we give you a chance

#

to admit

#

and actually starts to learn

#

so you can become a dev at some point

earnest phoenix
#

..

heady zinc
#

you shouldn't continue to lie

#

its obvious

pale light
#

whats with the comments bloblul

earnest phoenix
#

Silence

trim plinth
#

@pale light drama I guess???

#

idk how to describe it

earnest phoenix
#

I'm not in this anymore.

heady zinc
#

tfw the comments talks about advanced stuff like promises and the commands are else if

pale light
#

No one comments their code GWjustinThinkDrops

#

jk

trim plinth
#

SEE

heady zinc
#

some peoples do like me

#

but that's because my shit is open-source

pale light
#

yeah

heady zinc
#

and because i re-read my code

pale light
#

so if its private

#

then you know what you're doing

#

and you don't comment because

#

no one else is going to work on it

#

comments are readability just use a command handler

trim plinth
#

unless you are working with another dev, you wouldn't do breadcrumbs like that, that explain stuff you would already know

earnest phoenix
#

I do have another dev.

heady zinc
#

and you're other dev is a beginner Thonk

earnest phoenix
#

@spiral owl

trim plinth
#

@earnest phoenix if you know how to code, define a variable right here, right now.

pale light
#

uhm

#

thats not very uh

#

hard

trim plinth
#

true

heady zinc
#

actually probs can't answer to it

pale light
#

searching it up

heady zinc
#

if he c/p

#

so much that comments are still here

pale light
#

wait I might be able to prove one sec

trim plinth
#

k

heady zinc
#

search up for the tutorial on the weeb mmLol

rich kiln
austere meadow
#

@earnest phoenix We aren't trying to demean you or bully you with the fact that you don't understand coding that well, everyone starts somewhere. We are telling you it's best if you simply look up a tutorial and actually grasp an understanding of the language you are coding in before making a Discord bot, it will really help you

heady zinc
#

there's no shame in admitting it

#

really

trim plinth
#

@rich kiln exactly, you can easily just learn from codecademy

south finch
#

you guys probably arent helping all ganging up on him though zoomeyes just saying

trim plinth
#

true

pale light
south finch
#

that too.

trim plinth
#
  1. a. Don’t spoon-feed or attack beginners.
    Everyone starts somewhere and asking questions is smart. Do not attack people for not knowing how to code. Point them to great learning sources and help them with problems.
    However, you shouldn’t just give them finished code because then they only learn to copy more.
    b. If you are a beginner, have a will to learn and do not expect to be spoon-fed.
  2. Be friendly to other users.
pale light
#

we know the rules no need to copy paste

trim plinth
#

ik

pale light
trim plinth
#

k

golden glacier
#

!listids

austere meadow
#

@fast solstice unable to fetch application? did you make a bot application first?

fast solstice
#

yeah

austere meadow
#

how long ago did you make it? someone here had a similar issue and they just waited a bit before adding their bot

fast solstice
#

I just made the application

austere meadow
#

have you actually coded the bot
you shouldn't add it if you haven't got anything on it GWchadThonkery

fast solstice
#

how do you code it though?

austere meadow
#

i recommend going to anidiots.guide or discordjs.guide if you want to learn how to code a really basic bot

#

you can also look at javascript tutorials or youtube stuff

fast solstice
#

ok

wicked tartan
#

what's the best way to overcome a crash due to internet being down for nodebots?

#

I currently just use forever to restart everything

glossy sand
#

run it with a bootstrapper

#

yeah, like forever

wicked tartan
#

no fancy try/catch shenegians?

glossy sand
#

well really, if it crashes, you probably just want to restart the app anyways

#

it's probably the best way to tell the app to clean up after itself

#

you never know what kind of state the websocket is in when it crashes

wicked tartan
#

sure, I'll keep it with forever then

#

thanks!

umbral eagle
#

What would be the best way to create a channel object that I can then use send() on

#

in d.js

heady zinc
#

what do you want to do exactly

patent reef
#

so basically

#

npm uninstall discord.js then pip install discord.py

umbral eagle
#

thanks

patent reef
#

πŸ‘πŸ»

heady zinc
#

wtf hachby get out of here

patent reef
#

hachby

umbral eagle
#

channels got switched

heady zinc
#

hachby

#

lmao fml

earnest phoenix
#

hi

patent reef
#

@low rivet aight

whole mural
#

mine doesn't launch either, logs are empty wtf

#

wait keke

#

the worked is off

low rivet
#

@whole mural go to deploy

#

switch on worker

#

lol

whole mural
#

the worker is off lmfao

low rivet
whole mural
#

how 2 switch on?

low rivet
#

go to deploy

#

click the pencil icon

patent reef
low rivet
#

and toggle

whole mural
#

ohhh

low rivet
#

@patent reef turn worker on

whole mural
#

i got it now lol

low rivet
#

@whole mural go to somewhere connect to github

#

and click deploy branch

patent reef
#

OH im an idiot

whole mural
#

2018-01-28T09:52:03.172776+00:00 app[worker.1]: NameError: name 'os' is not defined``
#

KEK

low rivet
#

and maybe auto deploy

whole mural
#

u can just add heroku as a remote on ur local git repo

low rivet
#

wot

patent reef
#

ayyyyy

#

it launched

whole mural
#

git remote add heroku <url found in settings of app under "heroku git url">

low rivet
#

check the speed

#

it's actually ok

whole mural
#

then u can git push heroku master

patent reef
#

except my music cog isnt working

#
2018-01-28T09:52:38.363311+00:00 app[worker.1]: Failed to load extension music
2018-01-28T09:52:38.363337+00:00 app[worker.1]: OSError: opus: cannot open shared object file: No such file or directory```
whole mural
#

Yup, my bot came online

#

πŸ˜„

low rivet
#

music doenst work in heroku from what i heard

whole mural
#

opus isn't installed i think.

low rivet
#

@whole mural can't git push and heroku tat at the same time?

#

as in push to my repo

whole mural
#

Yes.

#

yes.

patent reef
#

hmm

#

anyone know how to fix?

low rivet
#

yes as in?

whole mural
#

just run git push twice

#
git push
git push heroku master```
low rivet
#

oh lul

#

ok then might look into it

whole mural
#

wish the bot i brought online had a ping fuction in it lol

low rivet
#

um lemme run a ping and bfb

whole mural
#

the fucker still works tho πŸ˜„

low rivet
#

0.02s

#

πŸ‘€

patent reef
low rivet
#

ive no idea, you can try it out

#

nvr played with music

patent reef
#

i would put that in the run console thing right?

low rivet
#

um GWcfcThonk i think so

low rivet
#

oh yes

#

don't expect anything to stay in local storage

#

which means no sqlite, no json editing

whole mural
#

If anyone needs to get d.py rewrite into their requirements.txt add this:

-e git://github.com/Rapptz/discord.py.git@rewrite#egg=discord.py```
low rivet
#

heroku restarts every 20-30h and gets everything back again from the git repo thing

whole mural
#

TIME TO STORE AN SQLITE DB ENCODED IN BASE64 IN AN ENV VAR

low rivet
whole mural
low rivet
#

you can't edit that, it won't stay

#

i use mongo if I use heroku

whole mural
#

@patent reef you dont need to run the buildpack shit in console btw.

patent reef
#

so how do I get opus?

whole mural
#

kek

low rivet
#

btw you can't use the console once ur heroku hours expire

whole mural
#

oh woe is me

low rivet
#

but the bot will still run and all cos its a worker

whole mural
#

can you still deploy tho?

low rivet
#

yes

whole mural
#

kek

low rivet
#

all workers function as normal

whole mural
#

on another nmote, you get 1000hours/month?

low rivet
whole mural
#

lol what

#

no.

patent reef
#

u told me

whole mural
#

ah nvrmind kek

patent reef
#

all i need is bot.logout()

low rivet
#

await

patent reef
#

and heroku will auto restart?

#

yes ik

low rivet
#

heroku will restart 1/2 the time

whole mural
#

is that because heroku is like OH SHIT FUCK THE PROCESS DIED

low rivet
#

the other 1/2 heroku will just crash

#

and u gotta switch off and on worker manually

whole mural
#

on another, unrelated note, is it possible to change_presence in d.py to streaming/listening/watching ?

low rivet
#

yes

whole mural
#

how tho.

#

i cant find it in docs reeee

low rivet
#

change the type=

whole mural
#

NEVERMIND

#

the game type lol

low rivet
#

yeah

patent reef
#

oh ffs

#

i disabled Shelp music

#

then i guess opus is working now?

whole mural
#

its watching the market now

#

lol

low rivet
whole mural
#

i need to remember how to start a task on bot launch and have it run every like 300 seconds

#

i want @unique bronze to change its presence every so often

#

shit like "watching the stars" "playing with a rocket" "listening to the falcon heavy's roar"

low rivet
#

?faq background task

#

in dpy server

#

and then change the url from latest to rewrite

patent reef
#

hmm

#

no heroku app for ios

whole mural
#

they have an app?

patent reef
#

i dont think so

#

i look all over the App Store

whole mural
patent reef
#

oh sheeettt

#

thx

#

tbh i just searched "Heroku"

#

welp nvm its not an app on iOS anymore

#

wtf all these Heroku clients "arent available in the US"

#

@whole mural they work for you?

earnest phoenix
#

Hello I would like on the site to update the server number of my bot only I am in a language script and I do not have a base can someone help me?

mighty barn
#

If I understand you correctly you want to post your server count to the API?

earnest phoenix
#

yes i know but i don't see an example for the language skript

#

Got a link to your lib docs?

#

what language is thing

#

oml

#

it's link with skript

#

wew a custom made lang

#

uh well

#

sorry i'm french in passing

#

you just need to make a post request to the stats api endpoint

#

with json body following the api docs

#

and the authorization header

#

okay thx

low rivet
#

@patent reef did u get music working?

whole mural
#

@low rivet Surprisingly, heroku seems to be very reliable πŸ˜‚

whole mural
#

@patent reef yteah they work

whole mural
#

@low rivet TiMe tO MoVe aLl mY BoTs tO HeRoKu

topaz fjord
#

@whole mural ur gay

whole mural
#

uruguay

#

@topaz fjord

topaz fjord
#

No u

austere meadow
#

@earnest phoenix

{
  "ignore": ["*.json", "*.png"]
}

#

its a json config file

#

and you can use nodemon --config [file] [script] to use it

whole mural
#

@topaz fjord nu u

earnest phoenix
#

hey

#

]

#

why?

#

dont works in any folder

earnest phoenix
#
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'discord.js' ]
2 info using npm@5.6.0
3 info using node@v9.4.0
4 verbose stack C:\Program Files\nodejs\node_modules\npm\lib\install\and-add-parent-to-errors.js:1
4 verbose stack (function (exports, require, module, __filename, __dirname) {
4 verbose stack
4 verbose stack
4 verbose stack SyntaxError: Invalid or unexpected token
4 verbose stack     at new Script (vm.js:51:7)
4 verbose stack     at createScript (vm.js:138:10)
4 verbose stack     at Object.runInThisContext (vm.js:199:10)
4 verbose stack     at Module._compile (module.js:624:28)
4 verbose stack     at Object.Module._extensions..js (module.js:671:10)
4 verbose stack     at Module.load (module.js:573:32)
4 verbose stack     at tryModuleLoad (module.js:513:12)
4 verbose stack     at Function.Module._load (module.js:505:3)
4 verbose stack     at Module.require (module.js:604:17)
4 verbose stack     at require (internal/module.js:11:18)
4 verbose stack     at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\install\deps.js:16:28)
4 verbose stack     at Module._compile (module.js:660:30)
4 verbose stack     at Object.Module._extensions..js (module.js:671:10)
4 verbose stack     at Module.load (module.js:573:32)
4 verbose stack     at tryModuleLoad (module.js:513:12)
4 verbose stack     at Function.Module._load (module.js:505:3)
5 verbose cwd E:\projects\Economy
6 verbose Windows_NT 10.0.16299
7 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "discord.js"
8 verbose node v9.4.0
9 verbose npm  v5.6.0
10 error Invalid or unexpected token
11 verbose exit [ 1, true ]
austere meadow
#

maybe try reinstalling node and/or npm

earnest phoenix
topaz fjord
#

Or try installing from the git

earnest phoenix
#

wut is dis

#

i got it when i was running my bot

topaz fjord
#

@earnest phoenix pretty sure it's a dns lookup error

earnest phoenix
#

it fixable ?

topaz fjord
#

Wait nvm

earnest phoenix
#

How do i fix it?

#

i 'm stuck

earnest phoenix
#

YOOOO

#

i need halp

#

.,-,

austere meadow
#

whats up

#

i just tried connecting to it and its not working

earnest phoenix
#

IDKKKKKKKK

#

i'm getting this

#

when i start

#

my botttttttttt

austere meadow
#

what

#

is that your code

#

thats erroring

earnest phoenix
#

nooooooooooooooooooooooo

austere meadow
#

did you install an npm package recently

#

or something

earnest phoenix
#

No

#

it randomly

austere meadow
#

are you sure you dont have anything in your code trying to connect to that address
check your READY event for anything

earnest phoenix
#

no

#

oooooooooooooooooo

#

it

#

i got it

#

bcuz

#

the server post

#

to the site

austere meadow
#

what

#

you fixed it though right

earnest phoenix
#

yep

#

xd

toxic field
#

Join my discord

earnest phoenix
#

My bot now

#

wont

#

response

#

to any message

#

omg

topaz fjord
#

Never host on free hosts

quiet bobcat
#

^

whole mural
#

what are you hosting on @earnest phoenix

earnest phoenix
#

When I try to auth my bot, is says unkown error

whole mural
#

lol

earnest phoenix
#

Someone help

#

nvm

#

Okay yeah it still does

#

Welp

glass inlet
#

@earnest phoenix where do you get the error

earnest phoenix
#

Its fixed

pale light
#

@earnest phoenix lets talk over here

earnest phoenix
#

Oh okay

pale light
#

whats your language

#

coding wise

earnest phoenix
#

uhhhh

#

Json?

glass inlet
#

πŸ˜„

#

what lib are you using to make the bot

earnest phoenix
#

Uhhhhhmmmm.......

#

@whole mural Fixed

pale light
#

Probably javascript?

whole mural
#

ok

earnest phoenix
#

I'm using discord.js @glass inlet

#

most best lib

glass inlet
#

I love djs but wasn't asking you lol

earnest phoenix
#

WTF

#

I had to download Java.json script or something

#

i want just help u

glass inlet
#

lost in translation

pale light
#

Can I see a screenshot of a little bit of your code

earnest phoenix
#

im on mac btw

pale light
#

thats js

#

javascript

earnest phoenix
#

Yeah

#

bot.js

#

I got that

#

So I got like this code,

#

<client>.user.setPresence({
status: "online",
activity: {
name: "Donut: Rainbow Six",
type: 0,
url: "https://www.twitch.tv/discorddonut/"
}
})

#

Do I just copy and past the in between those } brackets?

#

I know that those brackets like end a certain piece of code.

languid dragon
#

im taking it you dont actually know much about javascript at all? @earnest phoenix

earnest phoenix
#

Ehhhh I did a little bit 1 year ago.

#

But that was MsQl server.

languid dragon
#

I highly suggest you go revise on server-side javascript online

hushed oyster
#

You should probably learn a coding language before you make a bot

languid dragon
#

Googling terms such as node.js / server-side javascript / javascript tutorials would help

#

Diving straight into bot developing isn't the best idea, it'll wear you out fast and you'll get lost a lot

south finch
#

me

whole mural
#

anyone know what kind of blankspace can be used in an embed value so that its just a title?

#

nevermind

#

\u200

potent lily
#

@clear kernel Do you have fix youre problem with installing d.py ?

whole mural
#

what was the issue with installing?

potent lily
#

Yep

whole mural
#

?

clear kernel
#

i mean i just googled
python3 -m pip install discord.py works fine

abstract mango
#

\u200b as well

inner jewel
#

\u200D

abstract mango
#

@clear kernel ye

earnest phoenix
#

Okay, just 1 question. How do I update my bot when I changed something?

whole mural
#

its 200b

potent lily
#

Yep is cause in the installer he call 'python" with is probably python 2.7 ( by def if you have like terminator or Gnome )

whole mural
#

just \u200 broke it lol

#

oh

#

i know the fix for shit like that.

inner jewel
#

because \u200 isn't a valid unicode escape

whole mural
#

JACKZ NOOO

#

@clear kernel

#

noooo

inner jewel
#

in most langs

earnest phoenix
#

Okay, just 1 question. How do I update my bot when I changed something?

abstract mango
#

unless you use arch or other "bleeding edge" distros

south finch
#

@earnest phoenix just restart it

clear kernel
#

what?

whole mural
#

python3 -m pip install https://github.com/Rapptz/discord.py/archive/rewrite.zip#egg=discord.py

earnest phoenix
#

Yeah. but how.

clear kernel
#

no

whole mural
#

rewrite > not-rewrite

south finch
#

how are u running it

earnest phoenix
#

Terminal

clear kernel
#

idc i dont use python, and it works fine

#

Β―_(ツ)_/Β―

whole mural
#

@abstract mango cough I USE ARCH

inner jewel
south finch
#

ok so ctrl + c

#

or w.e

#

idk

#

tries

abstract mango
#

python on arch is aliased to py 3 by default

whole mural
#

ya

earnest phoenix
#

Doesnt work

whole mural
#

you have to use python2 if for, whatever reason, you wanna use that.

earnest phoenix
#

@whole mural NL?

#

    if(message.guild.id === `407159833322586113`){
        
        let member = message.mentions.members.first();
        
        const role = message.guild.roles.find(`name`, args[1]);
        
        if(!member) message.author.addRole(args[0]);
        if(member) member.addRole(args[1]);
        
    }else{
        return;
    }
    
}
``` i get `(node:11104) UnhandledPromiseRejectionWarning: Unhandled promise rejection (reje
ction id: 5): TypeError: Supplied parameter was neither a Role nor a Snowflake.`
languid dragon
#

you never use "role"

earnest phoenix
#

o wait

#

crap

#

i just noticed that

#

sec

languid dragon
#

also have some patience, people dont need to reply instantly to your queries in #development

#

they will answer when they can, you dont need to ask people to answer in #general :]

whole mural
#

@earnest phoenix what

earnest phoenix
#

Are u dutch?

#

ik lol

#

sorry i was being dumb

whole mural
#

No...

#

ohhh

earnest phoenix
#

Oeh

whole mural
#

its because of my pfp isnt it?

earnest phoenix
#

Bcz of the pfp yes

pale light
#

lmao

whole mural
#

πŸ‡¬πŸ‡§

#

is me

earnest phoenix
#

Ahaa

whole mural
#

Max le best.

earnest phoenix
#

Indeed

languid dragon
#

please take general conversation to #general

#

pls

#

(β•―Β°β–‘Β°οΌ‰β•―οΈ΅ ┻━┻

#

oi

#

none of that

whole mural
#

Β―_(ツ)_/Β―

earnest phoenix
#

(β•―Β°β–‘Β°οΌ‰β•―οΈ΅ ┻━┻

whole mural
#

┬─┬ γƒŽ( γ‚œ-γ‚œγƒŽ)

pale light
whole mural
#

Aight

earnest phoenix
#

I sorta got my bot working

#

But instead of when doing !ping

#

Dyno responds

low rivet
#

which lib

earnest phoenix
#

Lib?

#

Sorry, im new so yeah

low rivet
#

library

earnest phoenix
#

Uhm,

austere meadow
#

what language are you using?

earnest phoenix
#

Javascript

austere meadow
#

it's most likely discord.js then?

earnest phoenix
#

I have bot.js

austere meadow
#

bot.js is your file
At the top of your file, do you have anything that says require?

languid dragon
#

^^^^^^^^^^^^^^^^

#

good tutorial

#

go there

earnest phoenix
#

Okay

#

@austere meadow it doesnt say require anywere

austere meadow
#

i'll just assume you're using discord.js since its one of the more popular libs for javascript

earnest phoenix
#

the only .js file i got is bot.js

austere meadow
low rivet
#

what's the first 3 lines of your code

languid dragon
#

read that

#

it basically does all the hard stuff for you, API requests to Discord etc

low rivet
#

javascript is a language

earnest phoenix
#

guys

#

My bot is working

#

Can I now like upload it to here? To test it and stuff?

fleet mason
#

ok so i have this bot command that post a message in chat case 'BOT': bot.sendMessage({ to: channelID, message: '/tts IM the best bot go get a life peace of ---- '

#

how to i make it use /tts in chat

earnest phoenix
#

uhm

fleet mason
#

XD

elder rapids
#

Bots can't use commands lol

fleet mason
#

dangit

earnest phoenix
#

XK i feel u

austere meadow
#

can bots even use tts?

#

don't think so

elder rapids
#

Set the tts flag on your message

#

And they can

austere meadow
#

oh

fleet mason
#

how do i do that?

elder rapids
#

Your library should have a tts boolean

fleet mason
#

i dont think so

restive silo
#

which library do you use?

fleet mason
#

im not sure actually

earnest phoenix
#

What language do you use?

#

Javascript?

fleet mason
#

yea

elder rapids
#

Yup as I suspected there is a flag

abstract mango
earnest phoenix
#

its mostly discord.js

abstract mango
#

that's for d.js

fleet mason
#
        bot.sendMessage({
            to: channelID,
            message: 'XkijuX is the best executer ever'
            tts = true
#

will that work XD

elder rapids
#

Uh

restive silo
#

tts: true

elder rapids
#

You used an equals

earnest phoenix
#

:

elder rapids
#

Lol

earnest phoenix
#

Im feeling smart now, cuz i acctually knew it lol

fleet mason
#

XD

#

im totaly new

abstract mango
#

that's fine lol

fleet mason
#

YEa i guess im triple gay #feelsgoodman

earnest phoenix
#

Im also new

#

So yeah

fleet mason
#

SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

#

i get this error when im trying to run it

earnest phoenix
#

Have u installed discord.js?

elder rapids
#

Forgot a comma

earnest phoenix
#

or that

elder rapids
#

It's a syntax error

#

Nothing to do with having libraries

earnest phoenix
#

Can I upload a bot in here, even if I dont know what I am going to do with it yet?

fleet mason
#

ok so i just put in a ;

earnest phoenix
#

Yes

#

Somewere at the end of the line

elder rapids
#

I said comma

#

Not semi colon

earnest phoenix
#

Oh I didnt see the dot lol

fleet mason
#
            break;
            // Just add any case commands if you want to..
        case 'xkijux': 
        bot.sendMessage({
            to: channelID,
            message: 'XkijuX is the best executer ever'
            tts: true ;
             });
elder rapids
#

That's not how

fleet mason
#

XD

elder rapids
#

And wrong place lol

fleet mason
#

ahhh

elder rapids
#

And wrong character

devout chasm
#

Hey guys, I'm having some trouble with the API and postStats() - I'm only getting UnhandledPromiseRejectionWarnings with the status error 403...

earnest phoenix
#

"Unexpected end of input"

fleet mason
#

so im just put in }) and it should be fine`?

elder rapids
#

I said you're missing a comma

fleet mason
#

where

elder rapids
#

Wtf are you doing

fleet mason
#

idk

#

thats why im here

earnest phoenix
#

same

elder rapids
#

Read the code and find it

#

If you have intellisense it should honestly show you

earnest phoenix
#

"SyntaxError: Unexpected end of input"

fleet mason
#
            break;
            // Just add any case commands if you want to..
        case 'xkijux': 
        bot.sendMessage({
            to: channelID,
            message: 'XkijuX is the best executer ever' , {
            tts: true

             });
#

like that?

elder rapids
#

Still not in correct place

inner jewel
#

a: b,
c: d,
e: f

uncut slate
#

comma in the wrong place, you're missing one and you have one extra

earnest phoenix
#

SyntaxError: Unexpected end of input

#

Bruh

#

It all worked fine, now I got this

fleet mason
#

});
break;
// Just add any case commands if you want to..
case 'xkijux':
bot.sendMessage({
to: channelID,
message: 'XkijuX is the best executer ever' , {
tts: true

         });
#

like that?

elder rapids
#

Dafaq

uncut slate
#

.

elder rapids
#

Where did that extra bracket requirement come from

fleet mason
#

im so lost

whole mural
#

@patent reef Did you ever get voice to work on heroku?

fleet mason
#

reddit

elder rapids
#

??????

fleet mason
#

i searched on reddit XD

earnest phoenix
#

I am messing something

#

But I cant seem to find it

uncut slate
#

don't post your token.

#

change it, now

earnest phoenix
#

oh sht

#

yes

elder rapids
#

Rippu

devout chasm
#

RIP

earnest phoenix
#

Done

uncut slate
#

mkay, now ask your question without the token

earnest phoenix
#

// require the discord.js module
const Discord = require('discord.js');

// create a new Discord client
const client = new Discord.Client();

// when the client is ready, run this code
// this event will trigger whenever your bot:
// - finishes logging in
// - reconnects after disconnecting
client.on('ready', () => {
console.log('LETS GET THIS BITCH ROLLING');
});
client.on('message', message => {
if (message.content === '>ping') {
// send back "Pong." to the channel the message was sent in
message.channel.send('Pong.');
};
client.on('message', message => {
if (message.content === 'iPlayGucci') {
// send back "Is a sexy beast!" to the channel the message was sent in
message.channel.send('Is a sexy beast!');
};
// login to Discord with your app's token
client.login('TOKEN');

devout chasm
#

Hey guys, I'm having some trouble with the API and postStats() - I'm only getting UnhandledPromiseRejectionWarnings with the status error 403... Can somebody help me with that?

uncut slate
#

@devout chasm try googling 403

elder rapids
#

Give full error

earnest phoenix
#

I get

#

SyntaxError: Unexpected end of input
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

#

Its the same

devout chasm
#
    at new StatusCodeError (D:\Archiv\Projekte\Dev\Discord\musicBot\node_modules\request-promise-core\lib\errors.js:32:15)
    at Request.plumbing.callback (D:\Archiv\Projekte\Dev\Discord\musicBot\node_modules\request-promise-core\lib\plumbing.js:104:33)
    at Request.RP$callback [as _callback] (D:\Archiv\Projekte\Dev\Discord\musicBot\node_modules\request-promise-core\lib\plumbing.js:46:31)
    at Request.self.callback (D:\Archiv\Projekte\Dev\Discord\musicBot\node_modules\request\request.js:186:22)
    at Request.emit (events.js:159:13)
    at Request.<anonymous> (D:\Archiv\Projekte\Dev\Discord\musicBot\node_modules\request\request.js:1163:10)
    at Request.emit (events.js:159:13)
    at IncomingMessage.<anonymous> (D:\Archiv\Projekte\Dev\Discord\musicBot\node_modules\request\request.js:1085:12)
    at Object.onceWrapper (events.js:254:19)
    at IncomingMessage.emit (events.js:164:20)
    at endReadableNT (_stream_readable.js:1062:12)
    at process._tickCallback (internal/process/next_tick.js:152:19)
(node:14820) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:14820) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
uncut slate
#

missing the closing brackets for the message events

earnest phoenix
#

Second or first one?

uncut slate
#

both

earnest phoenix
#

{} I asume these

uncut slate
#

possibly

elder rapids
#

Using the correct or a Auth token for the api?

#

Rx ^

devout chasm
#

Should be the correct token

#

Gonna change it now

elder rapids
#

Your bots one?

earnest phoenix
#

This piece of code worked just fine

#

client.on('message', message => {
if (message.content === '>ping') {
// send back "Pong." to the channel the message was sent in
message.channel.send('Pong.');
};

uncut slate
#

it's not fine

earnest phoenix
#

It did work tho

fleet mason
#

@earnest phoenix did you use the guide that was on medium?

uncut slate
#

it did not, or you didn't copy a line over

earnest phoenix
#

No, the other one

#

It srsly did work

#

I did >ping

#

and it responded

uncut slate
#

It didn't work or you didn't copy a line over.

#

That script wouldn't run.

earnest phoenix
#

What do I need to change

uncut slate
#

close the message event

devout chasm
#

@elder rapids The discord token is correct, and the discordbots token is also correct

#

But same error

earnest phoenix
#

Were exactly?

uncut slate
#

@devout chasm you're not supposed to be passing a discord token

#

@earnest phoenix at the end

devout chasm
#

@uncut slate Sure

earnest phoenix
#

Still doesnt work

uncut slate
#

show me what you did

earnest phoenix
#

I have no idea were to put it, what line

fleet mason
#
        case 'xkijux': 
        bot.sendMessage({
            to: channelID,
            message: 'XkijuX is the best executer ever'
            tts: true
             });
            ```
#

what do i have to do to fix this code im so lost

uncut slate
#
client.on('message', (natan_can_succ_my_dicc) => {
  // Handle the message
});

@earnest phoenix this is what a normal message event looks like, adapt

inner jewel
#

(msg)=>{}

#

🀒

uncut slate
#

@fleet mason you've been told 3 times already; you're missing a comma

fleet mason
#

i cant find out where

uncut slate
#

Did you try common sense a/o Google?

earnest phoenix
#

This is how mine looks

fleet mason
#

do i have it beetween tts: true and message command?

earnest phoenix
#

client.on('message', message => {
if (message.content === '>ping') {
// send back "Pong." to the channel the message was sent in
message.channel.send('Pong.');

uncut slate
#

@earnest phoenix yes, and it's not closed

earnest phoenix
#

Were do i put it then

uncut slate
#

look at the example I sent you and adapt 🀷

earnest phoenix
#

it shows this red )

devout chasm
#

You're missing a }

mighty barn
#

you miss a }

devout chasm
#

xD

mighty barn
#

Dang it

devout chasm
#

First :P

earnest phoenix
#

Were, after pong

mighty barn
#

me 2 slow :c

#

yes

devout chasm
#

after the semicolon

fleet mason
#

I feel stupid now XD

mighty barn
#

didn't close your if statement

earnest phoenix
#

Okay fixed ti

devout chasm
#

these are basics jesus

earnest phoenix
#

Great, and it still didnt work.

fleet mason
#

guys what kind of code enviroment/ texturer place should i use. Im currently in notepad but its messy af

earnest phoenix
#

I use Sublime Text

devout chasm
#

Visual Studio Code

#

Or Atom

elder rapids
#

I use some good VS code

earnest phoenix
#

Omfg im smart

#

I fixed it

#

lol

devout chasm
#

@mighty barn How's your bot called?

mighty barn
#

-bots

gilded plankBOT
#
DMCPlayer#6346
Bots

@worthy hedge
@safe kernel

devout chasm
#

@elder rapids Me too πŸ˜‹

#

Ok thx

#

My code isn't working

mighty barn
#

I'm using Tonkku's example

devout chasm
#

Tonkku? Is there a link?

elder rapids
#

I'm using custom made mmLol

mighty barn
elder rapids
#

But I use a different language

mighty barn
#

huh, neat

devout chasm
#

@mighty barn Do I need a new dependency?

mighty barn
#

Don't think so snekfetch is already found in the node_modules

devout chasm
#

Thx

#

I hope it'll work now

#

βœ…

earnest phoenix
#

SyntaxError: Unexpected identifier
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

#

What do i replace the <.> with?

potent lily
#

ehm

#

Are you copy pasting ?

languid dragon
earnest phoenix
#

Yeah, but I checked it. Its all good. Exept those < >

fathom pebble
#

also unprefixed responses arent good

potent lily
#

Don't copy paste that's fully useless just make a clone of a git repo of some good bot if you want to copy past

#

If you didn't know what you are doing that's useless to code anything

#

Learn the base first if you don't know that's "<client>" is to replace with a object with the discord.client type

#

( here is client )

#

here you call the Function "setPresence()" from discord.client.user

#

You have already a discord.client know as "client"

#

so you can make client.user.setPresence()

earnest phoenix
#

Yeah I figured,

potent lily
#

Please don't start coding with copy pasting that's useless better ask some poeple to explain you ^-^

earnest phoenix
#

Thats why I am asking. And im copying and pasting simply bcz if I take down other bots. I dont know what I have and what im working with.

#

Thats why I like to start from scratch

#

And just add all the code I need for what I want in my bot

#

Not more, not less

potent lily
#

But learn what any fonction any syntax mean

#

So you can use it again

#

You didn't know what's client is and you ask for what to replace <client> by but you already use it so you don't know how youre previous code work exactly

earnest phoenix
#

And I am starting to learn coding, im getting game development / application developer education next year so yeha. I wanted a head start.

potent lily
#

^^

#

Just don't make VB.net and it's okay >.<

earnest phoenix
potent lily
#

You didn't hear anything

#

xD

#

That's a programming language

earnest phoenix
#

I searched it on google

potent lily
earnest phoenix
#

xD

potent lily
#

^^

#

I go back work on my bot

earnest phoenix
#

Gl

potent lily
#

Good luck with you're if you have any question ask it that's a lot better πŸ˜‰

earnest phoenix
#

Yeah, thats why I asked xd

potent lily
#

Thanks πŸ˜ƒ

undone plover
#

anyone know how to map reaction stuff ?(please tag me)

earnest phoenix
#
if (command === "leaveserver") {
        if(message.author.id !== botowner) {
            message.reply('thois command is only for bot owner!!!');
            return;
        }
        let guild = bot.guilds.get(args.toLeave);
        guild.leave();
        message.channel.send('Left guild.');
    }

TypeError: Cannot read property 'leave' of undefined

wicked tartan
#

message.guild.leave()?

earnest phoenix
#

where is message.guild.leave()

#

i want it like leaveserver (guild id)

wicked tartan
#

ohh I see

patent reef
#

@low rivet @whole mural nope :/

gilded blaze
#

@earnest phoenix when u get the guild is it a string?

earnest phoenix
#

idk

#

@gilded blaze

gilded blaze
#

well what is args.toLeave?

earnest phoenix
#

args is id

gilded blaze
#

why did you add toLeave?

earnest phoenix
#

ceause i see it at an github file

gilded blaze
#

well to leave isn't a thing

#

if args is the id

#

just do args

earnest phoenix
#

k

tulip wave
#

is there a command i can add to my bot that will show how many servers it is?

#

im using discord.js

elder rapids
#

yes

earnest phoenix
#

@tulip wave bot.guilds.size

elder rapids
#

that lol

tulip wave
#

lol thx

earnest phoenix
#

np

elder rapids
#

But uh that's not accurate if your bot is sharded

#

Just for future reference

tulip wave
#

ok

elder rapids
#

(because it'll only be the total for that shard)

tulip wave
#

its only a small bot anyway

earnest phoenix
#

yup

elder rapids
#

Well if you don't ever plan to shard (aka go above 2,500 guilds) you're fine

#

But that's just for reference that it's not accurate after sharding

tulip wave
#

im not planning anything like that just yet

earnest phoenix
#

@elder rapids can you fix my code

#

?

uncut slate
#

LUL

elder rapids
#

asking to fix code

earnest phoenix
#

it is on upside

elder rapids
#

I won't spoonfeed you :^)

earnest phoenix
#

k thanks

earnest phoenix
#

I am looking for a sorta randomizer piece of code.

#

For example, when I say "Hi" It could either say "Bye" or Hello"

glossy sand
#

create a list of all the outcomes you want then use a random number generator to generate a number between 0 and the list's size

earnest phoenix
#

Okay

hallow harness
#

@elder rapids would u have to like loop through shards and add the guild counts post-shard?

fallen kestrel
#

hi

#

any ideas of improvments for my bot

glossy sand
#

you should really be asking that in #general

#

this place is more for specific questions

fallen kestrel
#

no cause this is development

glossy sand
#

right, but it's meant for specific development questions like

#

"how do I do x?"

earnest phoenix
#
const cookies = require('quick.db'); // database
const moment = require('moment');

    let today = moment().format('1')
      if(message.guild.id === '383790085901910016') return;
  cookies.fetchObject(`lastBump_${message.guild.id}`).then(i => {

                if (i.text === today) return message.channel.send('**FAILED!** Your server already bumped today');
      cookies.updateText(`lastBump_${message.guild.id}`, today).then(() => {

Why is my bot only returning FAILED Your server already bumped today? It's been doing it every day, and no one can bump there server with my bot.

torpid vale
#

Can someone please tell me why this doesn't play the second song in queue but says it is

#
const Discord = require('discord.js');
const fs = require('fs');
const config = require(`./../../config.json`);
const search = require('youtube-search');
const yt = require('ytdl-core');

var opts = {
  maxResults: 10,
  key: ''
};

function play(message){
    message.channel.send(`Playing song **${queue[message.guild.id][0][0].title}**`);
    const stream = yt(queue[guild.id][0][0].link, { filter : 'audioonly' });
    const dispatcher = message.guild.voiceConnection.playStream(stream, { seek: 0, volume: 1 });
    dispatcher.on('end', function(){
        queue.shift(1);
        play(message);
    });
}
let queue = [];
module.exports.run = function(bot, command, args, message, updateJSON, addFooter){
  if(args[0]=='queue'){
    if(queue[message.guild.id]==undefined){
      queue[message.guild.id] = [];
      search(args.slice(1).join(' '), opts, function(err, results) {
      if(err) return console.log(err);
        queue[message.guild.id][0] = results;
      });
    }else{
    search(args.slice(1).join(' '), opts, function(err, results) {
      if(err) return console.log(err);
        queue[message.guild.id][0] = results;
        message.channel.send(`Queued song **${results[0].title}**`);
    });
    }
    message.guild.members.get(message.author.id).voiceChannel.join();
  }
  
  if(args[0]=='play'){
      play(message);
  }
}

module.exports.help = {
    names: ['music'],
    usage: 'e-command <args>',
    description: 'what?'
}```
quiet bobcat
#

@torpid vale remove key

#

kthx

torpid vale
#

done

quiet bobcat
#

ok

torpid vale
#

forgot about it

earnest phoenix
#

._.

quiet bobcat
#

just try queue.shift();?

torpid vale
#

k

quiet bobcat
#

insead of queue.shift(1)

torpid vale
#

may take a while though, I have to wait for songs to end...

quiet bobcat
#

Just put on like a 4 second video

#

πŸ€”

torpid vale
#

I don't know any...

earnest phoenix
#

just search 4 second vid

#

-.-

torpid vale
#

nope

#

it is also looping now xD

radiant basin
#

Does someone know a good SQLite alternative for node.js?

quiet bobcat
#

Can someone help me? When I do eg ??discrim 4275 I get 5 results of just me. What I'm using to search discrims is js if(isNaN(args[1])) return message.channel.send("That's not a valid discriminator!") var output = '\`\`\`fix\n' var found = false; client.guilds.forEach(function(guild) { guild.members.forEach(function(member) { if(member.user.discriminator == args[1]) { output += member.user.username + '#' + member.user.discriminator + '\n' found = true } }); }); if(found) { return message.channel.send(output + '\`\`\`'); } else { message.channel.send("Error! Found no users with the discriminator" + args[1]) }

earnest phoenix
#

,-,