#development
1 messages · Page 449 of 1
you can spoonfeed and get muted 
Yeah, it's best to stop 
i aint brokin rules
\🥄
@split lantern, worked fine for me. not like I used it or anything

?
I meant @earnest phoenix, sorry.
What

Read it
I just want to make a bot
Well you can make a bot by reading that
I've given you links to 2 great guides @blazing gorge, read them and learn for yourself.
Why does everyone like to tag me!
i guess if you want ppl to spoonfeed you then no1 will
Spoonfeeding= taking code and putting it in ya butt mouth
Wow
Read all of them
learn
No joke
Learn and ur bot dream will come true
I preffer Girl
Node js
Oh
@blazing gorge glitch.com
But i learnt C++basics in college
So the 2 Guides were easy to do trough
Can anyone help me figure out why this isn't working?
if(command === "!politics") {
//role id - 427982289708777474
//if(message.member.roles.has(427982289708777474)) {
if(message.member.roles.has("polititalk") ) {
message.channel.send("Dude. You already have that role. :blobthinkingsmirk: Is this a prank?");
} else {
let role = message.guild.roles.find("name", "polititalk");
message.member.addRole(role).catch(console.error);
message.channel.send("You should now have #politics access now. Please remember the Sanity Rule! :blobcorn:");
}}
I already had politics access.
node.js/discord.js
I run it on a windows machine in a powershell terminal, if that helps.
So, any ideas?
For?
... How to fix it?
Aha.
@quick ivy check the role name instead maybe? Idk what language this is
javascript/node.js
It works for at least assigning the role, but the 'check if has role / if does say that' doesn't work.
@quick ivy
1: use codeblocks
2: roles are mapped by id, not name iirc
so use the role id instead of the role name in the check
Okay, I'll try that.
also id has to be string
Hm?
looking from the code its an integer/number
message.member.roles.has(427982289708777474)
Maybe there's something similar to if(message.member.roles.find("name", "polititalk") != null) or something
you dont use that "name", "polititalk" thing
He used it to find the role object though 🤔
you gotta do something like r => r.name === "polititalk"
...
Node jd has linq?
linq?
Never mind
ok then :p
That's not linq lol
what is linq
I use r => r.name === 'wahtever name it is'
that is basically what i sent
Cya
Anyone know if there is a way to subscribe to the WebSocket connection discord.js uses ?
what for
Anyone know a good free lyrics API? I can't find any good ones.
Musixmatch API
YouTube API doesn't, and I don't really want to use Musixmatch since it doesn't meet my requirements at all.
what do you need?
Like, full lyrics. Musixmatch only gives 30%
genius.com has a lyrics api
will check it out
does anyone use .Net library of DBL? press 
hey, when i try to change my bot's avatar, the picture becomes very low quality
profile pictures are automatically resized to 512x512 @earnest phoenix, that's why probably
nah it like makes it
really smll
64x64
@warm prairie client.ws, lol
its also compressed by discord
I use .Net but I always just manually post to DBL since I use the same method to post stats accross 3 different bot lists
I have contributed .net lib, even though I use only 2 get requests I type manually 
pls help
I have a problem... The event works but the commands doesnt work
@quasi marsh
Do you have an on_message event?
yes
If so you need to do some thing like await bot.process_commands(message)
ty
why bot does not see the team?
const botconfig = require("./botconfig.json");
const tokenfile = require("./token.json");
const Discord = require("discord.js");
const bot = new Discord.Client({disableEveryone: true});
bot.commands = new Discord.Collection();
bot.on("ready", async () => {
console.log(`${bot.user.username} is online`);
bot.user.setActivity("", {type: "WATCHING"}); //Смотрит {},
//bot.user.setGame("Cломать тебе ебало.exe"); //Играет в {}.
});
bot.on("message", async message => {
if(message.author.bot) return;
if(message.channel.type === "dm") return;
let prefix = botconfig.prefix;
let messageArray = message.content.split(" ");
let cmd = messageArray[0];
let args = messageArray.slice(1);
let commandfile = bot.commands.get(cmd.slice(prefix.length));
if(commandfile) commandfile.run(bot,message,args);
//command: say
if (cmd === `${prefix}say`) {
message.channel.send("test")
message.delete().catch(O_o=>{});
}
//command:
});
bot.login(tokenfile.token);
Team?
yeah!
So I’m a pleb who just heard of Google Analytics. Anyone got an example of stats they’re keeping track of?
Google Analytics Solutions offer free and enterprise analytics tools to measure website, app, digital and offline data to gain customer insights.
Well yeah I know. I just wanna see how it can be used. Or rather just see the result, if you know what I mean
in what node version was for await of support added
the proposal was accepted late last year iirc
so i'd imagine either node 9.6 or 10+
i also know that it came out with chrome 63
haven't been able to pinpoint a specific version though
@pale marsh added might be able to help yah out mate 😃
@copper cradle added what?
Hi
is it possible to send different welcome message for different countries
if new member is chinese, the message will be chinese
or if member is brazil, message will be portuguese
for discord.js
well not really
without the user already being in some database saying they speak chinese or some other language
or nvm

Would be nice ... discord does have the option to change languages
But a player joined my server
but is there a way to find what language they have their discord set as?
And the verify message was English but player is brazilian
no i dont think so
so he didn't understand anything
I mean you could have channels specifically for each language you expect to join and just send a welcome message to each of them in different languges
That would be a channel mess
is your welcome message specific to something on your server?
Yes, users need to verify them.
oh
I'm developing a game's communities and they need to change their nicknames to our format
lol
im serious
Why?
Privacy Violation
if the ip starts with xx the message will be xx
still a privacy violation if your fetching the user's ip
I will not see anyone's ip
or
lets check can i see their discord language
yes i can see their OS lang lol
Really?
I don't think its for discord.js
but will try anyway
holy crap
i didnt get language
but got the files ftw
should i send what i got?
everything you say is a privacy violation
ok lol
const express = require('express')
const discord = require('discord.js')
const app = express()
const client = new discord.Client();
app.get('/', function (req, res) {
console.log("Someone entered /")
res.send("WAVE!!!")
});
app.get('/chat', function (req, res) {
client.on('msg', msg => {
res.send(msg)
})
})
client.login("TOKEN COMES HERE")
app.listen(3000, function () {
console.log('WebDiscordChat beta 0.1 listening on port 3000!');
});
a little help pls
it doesn't work 
error messages?
discord.js and express 
in python, does a variable needs to be global in order for an external file to access it? or at least being able to import it?
I've been doing that too @knotty steeple
doing what
discord & express
its java
what's java?
Lul
says Discord.js right in the descrip? lol
That isn't java and it says typescript
typescript is like what
Modified javascript
typescript is bad
yh
typescript is awesome
public import etc. is same with ts
^
ik
ok gud
typescript is that weird uncle you never asked for who you think you know but then you find out one more thing that asks more questions then it answers then you're back at square one again, who the fuck is my uncle?
wot
by the way i've never used typescript
isnt typescript to js like less is to css?
pretty much
also coffescript
anyone here know how many updates we can do to setPresence (so where it says 'Playing...') and how often/
want my presence to update but i'm unsure of if i'll be updating it too fast
I'd recomend a safe side of once every 5 minutes
ooh, i had mine on once a minute
Most libs will handle ratelimiting, so if it would cause problems usually your lib would help
discord.js gotta be my knight in shining armor here
oh, once every 15 seconds, okay, cool
that's with rich presence though, i don't think this qualifies as rich presence
generally 120 events per 60 seconds, so i can do it twice a second if i really wanted to but then anything more would rate limit so eh, 60 secs is fine
The ratelimit on updating presence is nearly the same as sending messages
But definitely not once every 5 minutes
ooooh
But yeah, to stay safe it better to not do it that often
60 seconds should be fine, i may try 30 seconds
but other than that not too many updates are made per second
once every minute is fine, I do mine every 61 seconds cause I can 
Does anyone else use the reaction-menu npm module here? If so, has anyone been able to remove the menu without getting errors thrown in the console?
Ask the question
Edited 
Well, whenever I use either menu.delete() or message.delete() it throws errors in console.
Let me see
That's menu.delete() isn't it?
Yes
Yeah, that throws errors too. It's odd.
Of course, let me add the code and grab the error.
👍
Okay, well. Apparently menu.delete(); works now. Apparently my bot likes to have mood swings but thank you very assisting me.
@spring ember Okay, I lied. This has just came through after a user executing the command and whacking the reaction.
{ DiscordAPIError: Unknown Message
1|run | at item.request.gen.end (/root/bots/GlobalBanz/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:71:65)
1|run | at then (/root/bots/GlobalBanz/node_modules/discord.js/node_modules/snekfetch/src/index.js:215:21)
1|run | at process._tickCallback (internal/process/next_tick.js:68:7)
1|run | name: 'DiscordAPIError',
1|run | message: 'Unknown Message',
1|run | path:
1|run | '/api/v7/channels/460377275460878348/messages/470255731447300116/reactions/%E2%9D%8C/429032704848297985',
1|run | code: 10008 }
The only code in that reaction is menu.delete();
Nope, this is the code for the reaction
{
emoji: '❌',
run: (user, message) => {
menu.delete();
}
}
Did you do send?
send for which I'm sorry?
menu.send
Yes I'm sorry
Np
let menu = new RM.Menu(message.channel, handler, { RM: { disable: { left: true, right: true } }, RC: { owner: message.author.id } })
let btns = makeBtns(menu)
for (let page of pages) {
await menu.add(page).catch(console.error)
}
menu.send(btns).catch(console.error)
Umm idk does the bot actually sends the menu to discord?
Yeah, apart from that reaction - the menu works perfectly but I cannot really have an exit reaction that doesn't exit.
That is really weird
unknown message is either message was deleted or hidden by message history, or the bot can no longer access the channel or server
to make sure you're getting the correct message, you can console log menu or message
um... Could I get some assistance with a library?
which lib?
Eris
well im trying to get the bots perms
I used this to get user perms msg.member.permission.has("administrator"))
I just cant find a way to check the bots perms
you can try msg.channel.permissionsOf(id)
ohh thank you
also it has to be in caps
what has to be?
permissions
¯_(ツ)_/¯
but if you want to check for bots permissions before sending the message, use client.channel(id).permissionsOf(id)
i 100% dont know how to code the bots
lol
nobody cares
go to #memes-and-media if you aren't interesting in coding
dont be mean
I don't quite understand this
https://puu.sh/B0ClO/be04869b92.png
I mean
how do I know which one of these specifically was updated?
An if statement on before.status/after.status?
well I know that before and after are the same member objects, so I just compare between each one if they have a difference?
Compare each property
Yes
Huh?
well how about roles? how would I specify what role was added/removed?
Compare the lists
^
that's what I'm asking, I might not know python that well to know how to compare lists
I know caching more than comparing lists, what is this 
Check which list is bigger. If before is bigger then the role was removed and vice versa, then remove the roles in the other list from the first one
prog_str
ok, sounds about right
this prog_str is [0:00:00/0:03:12] this
wat
i need this the duration of the song only
You need to iterate over the first and create a set
Remove from the second lists and add if not contained
You will get a set of roles that were modified from the user
Basically what I said
hello?
And I was stupid and didn't read your message
oi
Well idk python tbh. I’m just talking about the logic 🤷
@earnest phoenix what
@earnest phoenix what do you need help with?
@pale marsh set is in every lang
Do you mean lists?
I mean sets, lists are too
@spring ember @pale marsh hi lovely people
No u
i wanted help
About what
thank you for saying i'm lovely @spring ember
I’ve never encountered a Set object in .Net before tbh
Just say what the problem is already 😂
You 100% should read about them they are super vital and necessary most of the time
this is progress=prog_str this [0:00:10/00:30:43]
i need only duration
i use progress in my message
then it convertes it
to that
cause i put prog_str
Ree what gives you the prog_str
That’s interesting actually. I never knew this existed 🤔
I gotta look up the differences between it and List objects
You should!
i asked a friendly people then they give me this progress code as i was unable to do it
` async def cmd_progress(self, player, channel, server, message):
"""
{command_prefix}progress
Displays the progress of the song in chat |
"""
if player.current_entry:
if self.server_specific_data[server]['last_np_msg']:
await self.safe_delete_message(self.server_specific_data[server]['last_np_msg'])
self.server_specific_data[server]['last_np_msg'] = None
# TODO: Fix timedelta garbage with util function
song_progress = ftimedelta(timedelta(seconds=player.progress))
song_total = ftimedelta(timedelta(seconds=player.current_entry.duration))
streaming = isinstance(player.current_entry, StreamPlaylistEntry)
prog_str = ('`[{progress}]`' if streaming else '`[{progress}/{total}]`').format(
progress=song_progress, total=song_total
)
prog_bar_str = ''
# percentage shows how much of the current song has already been played
percentage = 0.0
if player.current_entry.duration > 0:
percentage = player.progress / player.current_entry.duration
"""
This for loop adds empty or full squares to prog_bar_str (it could look like
■■■■■■■■■■□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□
if for example the song has already played 25% of the songs duration
"""
progress_bar_length = 20
for i in range(progress_bar_length):
if (percentage < 1 / progress_bar_length * i):
prog_bar_str += ''
else:
prog_bar_str += '='
action_text = self.str.get('cmd-np-action-streaming', 'Streaming') if streaming else self.str.get('cmd-np-action-playing', 'Playing')
`
if player.current_entry.meta.get('channel', False) and player.current_entry.meta.get('author', False): np_text = self.str.get('cmd-np-reply-author', "Now {action}: **{title}** added by **{author}**\nProgress: {progress_bar} {progress}\n\N{WHITE RIGHT POINTING BACKHAND INDEX} <{url}>").format( action=action_text, title=player.current_entry.title, author=player.current_entry.meta['author'].name, progress_bar=prog_bar_str, progress=prog_str, url=player.current_entry.url ) else:
Hastebin please
@earnest phoenix player.current_entry.duration
This will give you the duration in ms
So from what I get the difference is that HashSet doesn’t allow dupes and has better performance
Huh
It might be better to use a hashset in the future then xD
So you know what the time complexity is?
Do*
O(1) for add contains and removal
And for List?
The downside is that it is not sorted
There’s a SortedSet object
@pale marsh O(1) add O(n) contains and removal
Gotcha
btw, on_member_ban has a guild parameter, does it default to the guild where the event was triggered?
Yes
ok thank
Np
can someone help me make a progress bar lik this
cause this looks badass
and i cant do it
cache the message and edit it every x seconds?
no i mean
like
the look of it
and the way its make so the time in the song is on the left and the song duration is on the right and
it looks badass compared to what i have
:(
why cant you do it?
a friend gave me this https://hastebin.com/temodalixu.py
that is what currently have
Don't ask for a spoon-feed
it isnt hard to do
can i atleast get help
split the string into 3 sections
Ask a question
something like
section 1 = "[ currenttime ";
section 2 = "";
section 3 = " totaltime ]"
you mean this
action=action_text,
title=player.current_entry.title,
progress_bar=prog_bar_str,
progress=player.current_entry.duration,
url=player.current_entry.url
yeah whats the thing for current time????
then you edit section 1 to current time, and section 2 to the amount of filled blocks
idk i dont use python
but you have player.progress and player.current_entry.duration in your code
try using that
@earnest phoenix you get the current time with datetme.datetime.now()
You don't seem to need it though
action=action_text, title=player.current_entry.title, progress_bar=prog_bar_str, progress=player.current_entry.duration, progress_time=player.progress url=player.current_entry.url
How to make a rating system as of mee6
You need to think of something to rank it by
And have a database linking user IDs to rank points
on_member_update is trowing me 'Member' object has no atribute 'nickname'
@ruby dust don't use nickname
then what?
use str(member)
@spring ember https://hastebin.com/jevoyagiba.php
It will give you the relevant name
@spring ember https://hastebin.com/afasituloz.py
hm
?
@earnest phoenix you forgot to add , before the url
@young mortar idk what you did there but nice API key
oh
😦
Yes @earnest phoenix
@young mortar the implementation is up to you
And don't copy paste mee6's code
It will not work

@spring ember Thank you but i dont need it in ms i need it in 0:0:0
@earnest phoenix so format it
XD
TIAS 
@ruby dust this is a list of all the things that have changed lmao
game playing is not the name of the property too

but use str(member) still
way better
doesn't seem to work as well
also I'm getting these for no reason
In embed.fields.1.value: This field is required```
yea
And nobody knows why 
I guess it's because I can't get it to post that fucking nickname into the field
and how does str(member) suppose to fix it? cause there is no such parameter like that anyway
str(discord.Member) Returns the member’s name with the discriminator.
and even if it would work it would return a whole member object, not just their name
where did you get that?
nah, still having difficulties
I'm not using member because there is no such parameter, so I'm using str(after) and str(before)
that's what I meant basically
async def on_member_update(self, before, after):
if before.nick != after.nick:
# get "chan" from some guild
await chan.send(str(before.nick) + '\n' + str(after.nick))
Works for me
¯_(ツ)_/¯
why the fuck does it say nickname in the docs
It's not a property and you should check out http://discordpy.readthedocs.io/en/rewrite/api.html#discord.Member.nick
And because... yes 
sometimes the docs are confusing
looks nice
thank you guys for the help
ok I made it to post, but I'm still getting spammed with this
In embed.fields.1.value: This field is required```
and idk what's the cause of it
is ther any free alternative to keep my discord up 24/7? (not heroku)
skysilk is in free beta testing
@earnest phoenix are you a student?
no
im 14 XD
well do you have anyone in your family who has a studen id
oh
well
and in grade 9 XD
im getting one in september
do you have your student ID on you?
I just said, skysilk
@earnest phoenix
im trying out skysilk
ues @earnest phoenix
wait
yes*
anyway if you have a student id you can get a free vps for 1 year
lol
which is the best choice
well
ever
i need it for life time
sp uea
yea*
@ruby dust wait is that vps too?
@ruby dust i just signed up
I feel like you just keep ignoring my messages and keep asking that student id
I don't see that being funny
well take a bath
or sleep then you will find out
@ruby dust how long does it take for the request?
mine got approved in like 2 days
it's a fucking vps, you know how vps' work
right

thank you
wait @ruby dust i watched a video about skysilk and it says after the beta it will charge you is that true?
Can someone help me out?
@earnest phoenix yes
that is true, but they didn't end beta yet and they had to do it over half a year ago, but even after beta there will be a free plan that will be enough to host a bot on over 500 servers if you aren't planning to host anything heavy on it
idek why you even using notepad++ for python coding
yes, here's your sollution: https://www.sublimetext.com
use visual studio code
no need for such a hassle just for python
if your a student use pycharm
sublime text is all you need
yes
is it better then visual studio code?
subjective
it's lighter for sure though
do you use it?
ah
here's how it marks down python syntaxes
ahh you use python
There is syntax support for js too
sublime is nice because of the package system
you can find packages for almost everything
for example, i have less->css compiler->minifier->upload via sftp on save
you guys sure skysilk has windows?
why do you want a windows vps?
any vps is good
you know that
not for me
if its not windows
then its not worth it
cause my special codec needs windows
waht codec is it XD
:=-0
you make a discord bot correct?
@earnest phoenix daaam my name is green tho
same here
that means i'm dangerous?
you make a discord bot correct?
why is my name green you tell me @earnest phoenix
ok
discord bot can be use on my computer / vps server
so why windows vps?
cause
my codec
need windows
if you want windows vps use asuze
its payed tho
too expansive i use amazon
XDDDDD
asuze is one of the most affordable ones XDD
amazon is
how much is it
azure
the differents is like double the per hour
there for amazon is 50% cheaper
well , my bot needs 8 cores
what codec is that?
and you're sure that codec is not available for linux?
usually stuff like that have linux implementations
Sounds perculiar
well im not an audiophile, i dont notice any difference between lq hq music bots
:9
here are the pricing for azure
ouch
sounds nice
Lol
lol
why do you need a gpu
u gonna game on a vps?
ikr
xD
hahah
XDD
man
Mining
better
kids today
@earnest phoenix its a bit rude to call me kid
naaaaaaaaa
XD
amazon has this for 0.200 per hour
and i need 8 core
o
thats why
is your bot that big?
wanna see something
well 4 cores wasnt able to handle it
soo
look at all the price buddy
6 cores wouldnt last for long
omfg
XDDD
my bot runs on a single core 600mb ram
mine runs on a single core too
i can tell you are a new progammer
mine runs on 2 cores
music shouldn't need so much
music bots need cpu?
yea
i have a music bot and it runs on like 1 core XD
no
when i was using a trial vps
i thought it just needs enough ram
nah music is cpu-intensive
are you processing music in real time with your codec?
yea
transcoding audio?
yea
then thats why
^
he prob doesnt even know what that means
dude
omg
i do
can you please grow up
me grow up?
you are so picky on you f*cking vps
"only windows"
lol
@quartz kindle guess what more cores means faster processing that is where the more core also comes in
if thats what he wants, let it be
why do you feel the need to point fingers at others?
what?
that was to nutty
ah
nutty
XD
ok ill let it be 😃

Thank you
i need to see the clock speed
well azure doesnt show clock speed of the cpu so it could be 1ghz
XD
i found it
it wont be 1 ghz
i know
those are high quality vps
i was joking
its the same cpu xeon Broadwell and the same cores for cheaper on amazon
the basically the same price
medahelp wtf????
turns out the embed field value errors I was getting was because of on_message_edit's after was returning None, conflicting with other unrelated events for no reason
@spring ember
yes
what
no
lol
ofc he is
anyone know how to convert an emoji name to a unicode character in python
ex thinking to \🤔
@ruby dust you told me about sublime, do you use the unregistered version?
yes
sublime is as free as winrar 
it works good with js too?
if you modify a js file then it will be helpful enough to follow syntax, yes
ok
isn't sublime limited
is there anyway i can install dblclient
why is it just broken
Whats the best Chat Bot API?
chat bot?
Yes
@ruby dust hey, forgot to ask but do you have to add your credit card to skyslick vps?
SkySilk require credit card for verification.
can i jsut use like a fake creditcard?
cuz i dont want to use a real credit card
I think they invoice a $1 payment to avoid such scams
really?
No.
You think so, but you are wrong.
They didn't take a single cent off my QIWI Visa Card.
And... fake credit card? I doubt they would appreciate that.
if you haven't heard of that why did you just randomly think of that $1 thing?
Because most services do that
They do refund it eventually I think
while it's in beta testing they need your credit card info just to confirm your identity
so if you do some illegal shit they'll know who to blame
you shouldn't be if it's a trusted service
ok
at least you can say that by their certificate
😃
can someone help me here, whenever i run this command:
m!eval message.channel.send(client.guilds.get('110373943822540800').users.get('240254129333731328').avatarurl)
i get this result:
TypeError: Cannot read property 'get' of undefined
i am using discord.js btw
you dont need .guilds.get('110373943822540800')
ik
and its .avatarURL
i did it as a test
but what is the error message for?
Thanks Samurai, it worked!
now i can go back to stealing avatars lol
jk
Is it bad style to write JS without semicolons?
depends on who you ask
hm
I mean, I leave them out all the time @hushed berry, at some times though leaving them out can break your code, so it's best to use them whenever possible in my opinion.
Hmm, alright
semicolons are (currently) fully optional
sure, they can resolve a syntax error in an odd situation but it's definitely possible to write js without semis
whether it's bad style isn't agreed on by the community at all
it's your preference
pretty much
I like semis
just.. whatever you do, make sure you keep consistent
either use semis or don't
I like em too
i generally use semi-colons on all lines that do not end with }
thats also what many js linters recommend
You should do that
well, more or less
I love heroku
can anyone help me with my play command. when ever i play a song and it ends and try to play another song it says add to queue can anyone help me?
heres the code:https://hastebin.com/uquzixubut.js
how do I do that?
Whats
@earnest phoenix, post your server count to the API.
yes
I entered this site but you do not find where you speak
can anyone answer my question?
Just look at the documentation for the specific language you use, the API has modules you can install and use.
@earnest phoenix, makes no sense to me.
@earnest phoenix idk but i didnt see where you unset data.dispatcher. it only plays if there is no data.dispatcher, then sets the dispatcher and never unsets it, at least not from what i saw
how do i do that?
you are sending data to your finish() function and naming it dispatcher, so data.dispatcher should be dispatcher.dispatcher in your finish() function, try setting it null or deleting it in there
looking at it again, something feels wrong, but idk what... when in doubt, hit it will console.logs everywhere :3
help-me
lmao
@earnest phoenix is your bot made with python?
yes
try this
Okay
also, i speak portuguese, if you have trouble with english
although if you guys aren't going to speak English, it's best to take it to direct messages @earnest phoenix @quartz kindle
in dbl token what do I put?
hey for heroku when i installed ffmpeg-binaries and try to use my music command it says ffmpeg not found? any fix?
in dbl token you put your bot's dbl token, that you find in your bot's edit page in the discordbots website
are you talking to me?
ok for heroku when i installed ffmpeg-binaries and try to use my music command it says ffmpeg not found? any fix
not sure
how do you post the bot server count to the api?
@rancid shuttle, depends what language you use; the API has some premade modules for different languages/libs, or you can use the raw API/URL and send a post request.
using .net HTTP woudl work also. Is there a link to instructions?
hi there, does anyone know why i'm getting this meme error:
(node:9628) UnhandledPromiseRejectionWarning: Error [VOICE_PRISM_DEMUXERS_NEED_STREAM]: To play a webm/ogg stream, you need to pass a ReadableStream.
at VoiceConnection.play (C:\Users\rando\Documents\Code\Node\Miku Rewrite\Main\node_modules\discord.js\src\client\voice\util\PlayInterface.js:74:50)
at voiceChannel.join.then.connection (C:\Users\rando\Documents\Code\Node\Miku Rewrite\Main\commands\Meme\soundboard.js:9:48)
at <anonymous>```
Code: `` const dispatcher = connection.play(`./sounds/${sound}.ogg`, { type: 'ogg/opus' });``
d.js version: master hahayes
hey @sick cloud could you find and dm me your avatar? i really really like it.
@neat falcon you need to open the file into a stream
after putting my DL token what should I do to have a quantity of servers?
@quartz kindle
if you follow the code in the dbl api examples, it should work right away
isnt it kinda against the rules having the bot listen on discordbotlist
if he didn't create it by himself
which he obv didn't since he doesn't even know how to install pip
(node:9662) UnhandledPromiseRejectionWarning: Error: FFMPEG not found
how do you fix this when you don't have root access? 
@earnest phoenix 👀 nuh
Oki fine. I really like your avatar tho
❤
Keep it in mind when you're looking for a Christmas gift lol
And as to your node.js problem, i could normally help, but i need a little situational background on this one
if you dont have root access, you can try compiling it yourself
see if you can find the ffmpeg binaries and if you satisfy the dependencies and requirments to build it
javascript itself isnt, but nodejs native packages/libs are
ffmpeg for node requires ffmpeg to be installed in the system for node to build the package
npm i ffmpeg-binaries is what i used to install ffmpeg for my bot once
@earnest phoenix, did that but it still can't find FFMPEG.
@sick cloud wwhats your os? u said u dont have root accss
not sure how npm works on machines with limited access
since i have full access on my computers
i never need to worry about that really
I'm on a user account on a dedi.
what module are u trying to install?
None? I needed actual FFMPEG installed; though dw now.
I've contacted the sys admin that has root.
It's fine, fixed it myself.
yeah i get it, was replying to Nao
i have a webhost with ssh access but no root, and i managed to install several packages in there by compiling them myself with gcc and make
👌
can anyone help me with my play command. when ever i play a song and it ends and try to play another song it says add to queue can anyone help me?
heres the code:https://hastebin.com/egerexofez.js
@sick cloud have you figured out your issue with FFMPEG?
> ThatTonybo :: Today at 10:55 AM
It's fine, fixed it myself.


