#development
1 messages · Page 517 of 1
do you have result = "" before the function?
oh wait
lmao
ready to facepalm yourself?
undefined ass
yes
I'm confused with js's null and undefined shits, so I just always double check.
xd
that is why js is bad Lang 
Whitespace
I am confused to some methods of the libraries that I'm using if they return null or undefined, that's why I just double check
but for my own methods, I always return null.
still, I'm going to double check.
wew
you can't stop me.
im not?
welp, I have this simple class to simplify the task.
export class NullCheck {
public static Fine(obj: any) {
if (obj !== null && obj !== undefined) {
return true;
} else {
return false;
}
}
}
@rapid citrus I actually recommend you return undefined
no I'm fine, everything is doing great.
the value undefined means a variable that has been declared but has no value
hence the typeof undefined is of course undefined
null is just the absence of an object
that's why the typeof null is object
if it is null or undefined, I can just always check them with that method above, so I think there is no problem with that.
Hmm....why not just use the logical NOT operator
That will work for falsy values
I'm used to what I'm doing right now.
It's as simple as doing
const value = undefined;
!value; // true
No class needed
it works on null also?
oh thanks, man!
any one here knows how to do this:
⚪───────────────────────────────────────────
using ytdl-core
wut
lavalink >>> *
i dont use lavalink
My bot crashed because of a guild setup error on the server with the id 264445053596991498. And that is this server. Does somebody know what that error means?
slices
Can someone help me with this?
node.js and sqlite3
So, I want to replace "Awaiting" to "Approved" in the Status field in the submit table. How can I do that?
"UPDATE submit SET Status=? WHERE ID=?"```
@earnest phoenix lavalink allows music with low resource usage for non jvm bots
and scalability for huge ones
I‘ve heard that discord.go is better than discord.js because of the good performance of go, is this true?
What is the best language to write a bot?
Discord.js
Its a library
Yeah no shit
Ehm yeah sorry I ment js
I wasn't talking to you
good performance
Define "good". Also explain how this metric even matters for bots that aren't large.
Anyone know of an easier way to hook into the output of console in node than this? https://youtube.is-down.party/TcPEq6Ii.png
c comes from this https://youtube.is-down.party/9XM4h56F.png
I'm making a module that sends logs off to another server using a websocket
and I want users to be able to do something easy like ```js
myModule.hook(console);
// or
console.log = myModule.log;
for(const k in console) {
if(console.hasOwnProperty(k)) {
const old = console[k];
console[k] = (...args) => {
old(...args);
if(c[k]) c[k](...args);
}
}
}```
And where would I put my custom methods in there?
that'd hook all methods in console
What is better to use for hosting? VPS SSD, VPS CLOUD, VPS CLOUD RAM
to call c[k] if c[k] exists
@zenith moss depends on your use and the specific specs/price
ok
also you can provide multiple arguments to console.log/warn/error/etc
which your code doesn't handle
My bot doesn’t have any commands that use much cpu, any ideas on what kind of VPS I need?
VPS SSD, VPS CLOUD, VPS CLOUD RAM
Awesome, it works. Thanks a ton @inner jewel 😃
haxlive it's hard to tell without the specs
I’m looking at ovh
Yeah
ok ill see
any ideas on how much you want to spend or how much ram your bot uses
That this point it doesn’t use hardly any, just getting a reference for the future
do you have/plan to have a big db in the future
No really
then honestly i would just go with vps ssd
Alright
the vps cloud doesn't have any super substantial improvements, and the vps cloud ram isn't a great deal
How can I update data using sqlite3 in node.js?
what have you tried?
db.run("UPDATE submit SET Status=? WHERE ID=?", [Status, ID],
function(err,rows){
console.log("Done.")
});```
It logs Done. in the console, but doesn't edit anything.
log the err
do console.log(err,rows)
sure.
This might be helpful @lethal sun https://anidiots.guide/coding-guides/sqlite-based-points-system
also, i think you have to put value assignments in parenthesis
SET status = (?) WHERE id = (?)
No problem :)
No need for parenthesis
yeah
ah
but wait, where do I put the new value?
Well is ID actually an id in the database?
then it should work...
currently extending the eris client, snd i've hit an issue when making the class. so, i'm defining a function then trying to use it, but it says it isn't a function, can someone help?
C:\Users\ThatTonybo\Desktop\Kyri\src\base\Client.js:15
this.bindSelfEvents();
^
TypeError: this.bindSelfEvents is not a function
code is at https://github.com/kyridiscord/Kyri/blob/master/src/base/Client.js if needed
@sick cloud i dont really know if thats the problem but you extend a function since eris exports a function returning a new Client by default, you maybe wanna do ```js
const { Client } = require('eris');
module.exports = class MyClient extends Client {
}
that would be my best guess
that worked

no
oh
also is it possible to like
extend every user
ok
and add a tag property?
thats nice
its exporting a function what returns a new Client instance
@sick cloud overwrite prototype
thats what i used with map
what prototype would i be overwriting to add tag to users?
the User class
user 
so i add it next to the Client thing?
okay
alright so i got that
is it something like User.prototype.overwrite or something?
User.prototype.whateverPropertyYouWant = something
I think my bot borked

alright
you can make it a getter as example
I tried sharding with glitch and.. yeah
doing what you showed above
wew, that so worked
yea dont use glitch for sharded bots
undefined#undefined

I don’t need to shard just wanted to see what happens

i think it failed miserably
Yup
User.prototype.tag = `${User.username}#${User.discriminator}`;``` i guess this is wrong?
yes thats very wrong
you tried to access properties static form a class
make it a getter like i said
a getter? 👀
you can use Object.defineProperty() for that
umm, how? i've literally never extended anything really
Object.defineProperty(User, 'somecoolproperty', {
get: function() { return this.username }
})
this should be enough as an example
can i replace function() with es6 arrow functions? makes sense tho
whats the difference between that and this? js User.prototype.tag = function() { return this.username; }
^ this will make it a function not a getter
idk what getters are either xd
oh
researches
Object.defineProperty(User, 'tag', {
get: function() { return `${this.username}#${this.discriminator}` }
});
so would this work out?
yea you can actually shorten it to ```js
Object.defineProperty(User, 'tag', {
get() { return ${this.username}#${this.discriminator} }
});
thats a cool ES6 feature
and will this effect stuff like the Client user
or not
since client.user returns undefined
if the ClientUser class extends the User class it should 
but i know eris internally well enough to know its probaly not for no good reason
ah i get it now
class ExtendedUser extends User {
with getter you can call it as User.tag, with a method you have to use User.tag()
ye
welp, would i have to extend the extendeduser as well?
normally not
it should inherent it i think
not quite sure
try it on a normal user
yukine knows how to read spaghetti code
is extending geared towards modifying existing code?
like building a library on top of another one
Hey @hushed berry , any chance you also put your db on k8s too?
wat
and its bugging me
i love them 
@keen drift i dont remmeber if i aksed or if you told me
I just want to install something and it keep telling me cant find main module
but what do you host your cluster on
(╯°□°)╯︵ ┻━┻
@topaz fjord gimme err0r
do they have their own k8s system
nah
or do you have to manually install it
manual
go get github.com/andersfylling/disgord
what go version do you even have
1.11.2
@hushed berry is each pod like a whole vm?
also for is faster
but don't do it
discord API is a person to
@keen drift what
@hushed berry are each pods their own linux os
i'm assuming yes
but I gotta confirm
Hey
No
no 
Anyone know how to get into bot development?
aren't they virtualized
If so, @ me
Yeah, docker kek
yeah alright
lol
Kk
@topaz fjord how to return if a guild doesnt have a general channel?
also the bot is in 75 servers
not a lot
@visual zenith A channel named "general" or a default channel?
Yes
lose servers fast?
Tony going full roast here
since my official server is ded... I need to send updates about the bot xD
...
if(!guild.defaultChannel) return;
...```
so people will know whats up
don't broadcast update messages
then how about make it so they opt-in instead
that can get you in a lot of trouble
also thats DEPRECATED
from an ip ban to an account ban
It's API abuse as well
yeah
Just don't do it
If you need to send a message to a specific channel, use the channel's ID
The best way to do it is add a section on the help message at the bottom saying what updates you've made
^
Or put something in the bot's status
or make people join your support server and ping everyone
but for the love of all that is properly formatted, don't broadcast messages like that
@zealous veldt default channel doesn't exist anymore
ik
ye, what I do is I look for a channel called general
or find the first channel the bot has perm to send in
it sends a doc link upon join
guilds.size
o
on your client
thanks
How do you find the ping of a bot
#rtfd
Both work pls
@zealous veldt Read The Fucking Manual / Docs 

get more ram
download more ram*
delete more ram****
dont host a music bot on glitch™
step one use an actual db
.-.
Can a bot clear 1 message exactly?
What language?
Node.js
and the library is discord.js?
Yes
you can use message.delete() to delete the latest message as I remember.
Okay thanks.

what does eris have in terms of attachment handling?
alright, scratch that but, my new command isn't responding at all. codes https://hastebin.com/momekediwi.js - but i mean it literally doesnt reply at all. no errors, no msgs, no logs, nothing
if anyone could help it'd be nice
Can someone help me with this?
It says undefined. Name is a field in my submit table.
rows.forEach(function (row) {
msg.reply("`" + `${row.Name}` + "` has been approved!")
}); ```
You can
msg.reply(`\`${row.Name} \`has been approved!`);```
Yeah, but how will that fix my issue? @median sandal
try typing in the console and checking whether the row has Name
console.log(row);```
why are you using string concatenation when you have a template literal
you mean string interpolation?
How do you put text in an image
https://cdn.discordapp.com/attachments/511224851399311361/511560665706790934/armor.png
Like
!achivement hi there
Bot responds with
Achivement Get!
hi there
thats a example
Canvas or smth
?
there are many image manipulation methods
depends on the language
javascript has canvas for example
you can also use external libraries and software such as imagemagick
JavaScript also has Jimp as I remember. it's easier to use and is easy to install tbh
yeah thats also an external library
yeah
I used Jimp a long time ago. it was pretty good.
its pretty slow tho xd
I remember when I needed to make a timeout to send it
hm. 1500-2000ms. something like that
jesus
1000ms is 1 second right?
but thats with disk operations right? reading images from disk every time
and yeah
yeah
that might have been the reason
my bot uses canvas
everything is generated, there isnt any background image or image file or anything
it takes 50-100ms to generate
it can be even faster
since its low level code, you can always squeeze in more performance
the problem is that canvas is highly sensitive to resolution
so 7ms for a 600x600 image
100ms for like 2000x2000
well, its still under a second, so...
that speed doesn't bother me, unless it reaches 1 minute, lol.
lol
I don't feel comfortable to wait 1 minute for an image to generate
that's a no no for me
canvas is used for games, so it can handle 60fps animations (16ms/frame),
that makes sense
how can i do that effects?
css gradients
Css
css
my eyes are now dead.
I'm dead serious. I can't see anymore
how can i add css
yeah
Link
yeah
@rapid citrus #memes-and-media ???
Oh thanks tim.
nothing matches in that bot page
lol
Do we have to download canvas?
you have to install it, I recommend the pre-built one.
oh wait are you using nodejs?
@amber junco about the Minecraft achievement got image generator, most bots create it with a website and use snekfetch to send the image.
whats a snekfetch
oh
but i dont recommend it, since its outdated
So what do you recommend?
the snekfetch authors recommend node-fetch
i prefer using node's own http/https
which doesnt require any library
@_@
lmao
i wouldn't recommend using directly node's http/https built-in modules
as they suck REALLY hard
regardless, there are literally dozens of http packages out there, chose whatever you want
why do they suck?
axios 👌
const https = require('https');
https.get('https://google.com', (resp) => {
let data = '';
// A chunk of data has been received.
resp.on('data', (chunk) => {
data += chunk;
});
// The whole response has been received. Print out the result.
resp.on('end', () => {
console.log(JSON.parse(data).explanation);
});
}).on("error", (err) => {
console.log("Error: " + err.message);
});``` because that's how you use it
while all the wrappers out there are literally one-liners axios.get('https://google.com').then(r => r.data);
axios.get('/user?ID=12345')
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
^ that's axios
i'd personally recommend axios/got as the most feature-full/maintained packages
got 
so your only reason for saying node's http sucks its that is a little more lower level?
it sucks because it's usage is overcomplicated yes, that's the reason why there's so much wrappers for it out there
now don't get me wrong, it is the fastest over all packages, but the most painful to use as well
not to mention it also lacks features
exactly, so you cant really say it sucks, just that you dont like it
else it would be the same as saying canvas sucks, and jimp is much better lmao
for people who know how to use it
nah it's intuitive asf
there is canvas-constructor
i dont use canvas constructor
I use regular canvas 
again you're saying things suck just because they're harder to use lmao
because that's how it works
the more the package has bad points, the more it "sucks"
so to get back to my initial point
thats not how programming works lol
the more lower level you go, the more complex, powerful and performant it is
you cant say low level sucks just because its harder to use
If you don't know perfectly about a thing then it sucks imao
Then learn it and make it easy!
but that doesnt mean it sucks
like
if you say xyz sucks, people will misinterpret and think the technology behind it sucks
which is untrue
the design sucks
its not the design, its the fact that is lower level
you can't say the technology behind it sucks as anyway as i said any other package is just a wrapper around the http/https module
exactly
the tech doesnt suck, the tech is amazing, and the purer it is, the more amazing it is, just harder to use
now throw abstraction layers on top, and it makes it easier to use, but doesnt make it "better", not by power and performance metrics
you're missing the point
it does make it better, not by performance indeed, but there's much more than performance when you judge the quality of a module
performance is uncontestably the most important one, but how intuitive, feature-full and documented it is are also important points
well, i measure quality by how fast it is, not by how beautiful its code looks. because in the end, thats what the end-user cares about
and my point is that saying something "sucks" might be misinterpreted, as i said before
well, i see your point, fair
it would be more accurate to say that it isn't beginner-friendly, as a general standpoint
My main process (bot) and its child process (dashboard) send messages. How can I make the child process wait for a response and get that response after sending a message? I want a function like:
async function test() {
process.send({
op: "TEST",
id: 1
});
let response = await waitFor("TEST", 1);
return response;
}
You can use ipc if you want them to send message to each other
it gets complicated
hmm
1 sec
// just a handy unique ID thingy
function uuidv4() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
let r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
}
const sendToProcess = msgToSend => new Promise((resolve, reject) => {
const fingerprint = uuidv4();
let timeout;
const listener = (msg) => {
if (msg.fingerprint === fingerprint) {
process.removeListener("message", listener);
clearTimeout(timeout);
resolve(msg);
}
};
process.send({ ...msgToSend, fingerprint });
process.on('message', listener);
timeout = setTimeout(() => {
// takes 5 seconds to time out, generally shouldn't happen as long as your thing responds
process.removeListener("message", listener);
reject('Took too long to respond.');
}, 5000);
});
sendToProcess({yes: true}).then(results => {
}).catch(err => {
});
@brittle nova
that should be about it
there is a uuid generator
don't need a uuid generator anyways, I'll be using functions for guilds and users
i mean what if something sends at the same time
sounds like a good song
(node:79) UnhandledPromiseRejectionWarning: Error: 401 Unauthorized
at IncomingMessage.res.on (/home/runner/node_modules/dblapi.js/src/index.js:118:25)
at IncomingMessage.emit (events.js:185:15)
at endReadableNT (_stream_readable.js:1106:12)
at process._tickCallback (internal/process/next_tick.js:178:19)
(node:79) 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:79) [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.```
means ur unauthorized
....
not about your problems in particular, just like everything
oh but how do u get the token
i think https://discordbots.org/api/docs or something
your dbl token is in your bot's edit page
ok
How do u make a bot post different daily reddits like memes
Reddit has an open API, request the info from them (this part is easy) then parse the JSON, then select what you need, then post it
request >>
no request is cool
takes like 6 times the request time
no not at all
it has an inferior syntax and takes longer
how is that cool
@idle mountain how do u request the infp
request the same thing, except add .json on the end, so like:
https://reddit.com/r/facepalm.json
gets the json for /r/facepalm
ok
then just get the page, it'll get the json
ok
not sure exactly how to do that (i'm guessing you're using js), then parse the json, and then you'll have to manually look through it to find what you're looking for (it's a bit confusing but becomes more obvious after a while)
Is there a way to use google sheets or excel for a bot database?
what about access?
is there any more?
nosql 
ok
mongodb is gud
currency?
Mongo is good for big data
what about for currency
depends on how large your bot is
]]ev -sql SELECT coins FROM users WHERE id = 286166184402092042
[ RowDataPacket { coins: 1421 } ]
mangomongo seems good
ok
]]ev -sql UPDATE users SET coins = 42000 WHERE id = 286166184402092042
OkPacket {
fieldCount: 0,
affectedRows: 1,
insertId: 0,
serverStatus: 34,
warningCount: 0,
message: '(Rows matched: 1 Changed: 1 Warnings: 0',
protocol41: true,
changedRows: 1 }
mysql best sql
I think it's an NPM module?
so whats the npm?
just search it smh
mongoose is a nice module for mongodb
postgres 
because mysql has a place in my heart from my early development years, also i studied it in many courses lmao
I like Mongo's gridfs
it really is @tight heath
I use gridfs since I store my images in it
lmao
shiro is going to be mysql btw
you dont start with json 
I've actually started with MySQL and left for mongodb
I switched to rethink after less than a month so chill
json was just easiest for me tbh
i would highly recommend rethink for node.js beginners
fs
rethink is cool
hell no
fsn actually
shit crash
owo
man ur data fucked
database.ini
i use ini for talkr
fd?
which is a thing i made
I'm now happily @mongo
its in autohotkey
i really like autohotkey actually
mongo is like the more developed and older sister of rethink
lmao
hello, I need some help.
I'm making a discord bot that can play music, and I'm trying to make a progress bar for the currently playing song, but I can't figure out how to get the current time of the song. I'd appreciate any help
I'm using node.js with ytdl-core
discord.js?
ye
have you looked at the docs
dont start with a music bot man
there is a get info function in ytdl-core right
i dont think it gets the current time tho
if ur a noob like me dont start with a music bot
it doesnt
im not starting lol
lol
not my first bot
ok
?
How does mongo work?
i think it only counts the time the bot is speaking
o
you might find some spooky dooky shit in here https://github.com/fent/node-ytdl-core/blob/HEAD/example/info.json
been looking htere too
you can also use a workaround using yt-dl
yeah, i've been thinking about that
@tight heath is the npm mongodb
I mean that's what I use, but I heard of mongoose or sthg like that
ok
k
well, thanks guys I'll try making my own timers
okay gl
Is there any way I can create a cooldown for multiple commands so that if the cooldown is triggered for one command he can’t use that one and another
Discord.py btw
So I want my bot to hack the fib, is their a module for that?
I have this is far:
hack.fbi()
@earnest phoenix u gotta import hacks
Ok sorry.
hack.fbi()```
Good?
@earnest phoenix
Yes
Cool let me run it.
WHat does this mean
(node:4831) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 message listeners added. Use emitter.setMaxListeners() to increase limit```
hey un
what does this mena
(node:4831) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 message listeners added. Use emitter.setMaxListeners() to increase limit```
no actually
It tells you how to fix it lmao
dont know where to put that in
Close the listeners after your done.
??
well ur really helpful
it means you added too many listeners
thing.on('fiusjk', (suij) => { ... })
Pls come dm’s
too many of these things ^
uh so how do i get rid of them
@earnest phoenix dont shitpost here kthx
^^^^^^
nice mini mod
either you could get rid of the old one before you make a new one
im p sure increasing the max could increase the amount of mem usage
but how would i increase the max
thing.setMaxListeners(0) for no limit
whatever you're using .on on
I'm using discord.js-commando and I'm trying to send a message to a specific channel that was created just moments before (see included code). I can't figure out why I'm constantly getting the following error; TypeError: Cannot read property 'send' of null
Here's my code
var roleName = `cc${msg.author.username}`;
msg.guild.createRole({
name: roleName,
color: 'DARK_GREEN',
hoist: false
}, `private channel for ${msg.author.tag}`);
msg.guild.createChannel(roleName, 'text').then((channel) => {
channel.overwritePermissions(msg.guild.roles.find('name', roleName), {
'SEND_MESSAGES': true
});
channel.overwritePermissions(msg.guild.roles.find('name', '@everyone'), {
'SEND_MESSAGES': false
})
});
msg.say(`Private channel created!`);
msg.guild.channels.get('name', roleName).send('it worked.');
async function updateStats(){
let a = await client.shard.broadcastEval('this.guilds.size');
let b = a.reduce((prev, val) => prev + val, 0);
snekfetch.post(`https://discordbots.org/api/bots/${client.user.id}/stats`)
.set('Authorization', 'yes')
.send({
shard_id: client.shard.id,
shard_count: client.shard.count,
server_count: b,
})
.then(() => console.log('Updated discordbots.org stats.'))
.catch(err => console.error(`Whoops something went wrong: ${err.body}`));
}```

ok
so
the thing is
@earnest phoenix
when you post shards
you only need to post that shards guild count
async function updateStats(){
snekfetch.post(`https://discordbots.org/api/bots/${client.user.id}/stats`)
.set('Authorization', 'yes')
.send({
shard_id: client.shard.id,
shard_count: client.shard.count,
server_count: client.guilds.size,
})
.then(() => console.log('Updated discordbots.org stats.'))
.catch(err => console.error(`Whoops something went wrong: ${err.body}`));
}
oh
it will auto add for you
if you ask your question someone can
Alright
@bot.command(pass_context=True)
@commands.has_role("Premium")
@commands.cooldown(20, 86400, commands.BucketType.user)
async def spotify(ctx):
with open('spotify.txt', 'r+') as f:
f_contents = f.readline()
print(f_contents, end='')
await bot.send_message(author, f_contents)
d = f.readlines()
f.seek(0)
for i in d:
if i != "f_contents":
f.write(i)
f.truncate()
@bot.command(pass_context=True)
@commands.has_role("Premium")
@commands.cooldown(20, 86400, commands.BucketType.user)
async def nordvpn(ctx):
with open('nordvpn.txt', 'r+') as f:
f_contents = f.readline()
print(f_contents, end='')
await bot.send_message(author, f_contents)
d = f.readlines()
f.seek(0)
for i in d:
if i != "f_contents":
f.write(i)
f.truncate() ```
How do I make it so if the first cooldown is triggered users can’t use the second command either
correct me if im wrong but arent you just putting seperate cooldowns for each command
?
discord.js
categories?
Hi, maybe one of you has a idea (using discord.js on master branch):
so i try to show all server emotes in a embed description with:
.setDescription(message.guild.emojis.map(e => e.toString()).join(" "))
and most of the server it works perfectly (also here) and in one server i just get the emoji text surrounded by : - and i am running out of ideas why that could be 
thank you for advice
you mean arguments?
yeah
uh
haha
Does anyone know how to get a .js bot to send yt notifications like not a webhook sending it but the bot itself
@latent willow does the bot have permission to use external emotes?
the role has admin + external emote permission yes
it actually has more permissions than in my own server (where the embed shows correctly) - just in his server there are only the emote names
at nathan : oh with a eval on my server on the bot answer (message.content) i get the format <:name:id> and on his only :name: it confuses me
any animated emojis?
yes some but here aswell and it works perfectly 
@inner jewel But they have to get the id
what
the bot
for example here in this server i get <:name:id>
and in his just :name:
any managed emote?
what do you mean by that ? (bot has the manage emoji perm on his server yes)
i think i am dumb but i dont get it (theres no managed property on emojis on master)
I got an error saying ffmpeg was not installed so i did sudo apt-get install ffmpeg and restart the bot and it removed the errror but its still not playing anything.
can someone help please??
im using ubuntu 18.04 and discord.js
and i did ffmpeg in console and it works, why will the bot not play
and if i have the bot on my windows pc it works 100% :/
tag me if you can
oh that reminds me i need to install ffmpeg also ill help in a sec
ok ty @west raptor
Ok so, what's your code atm?
solution: don't use ffmpeg
shut turtle
I'm not lying
alright so it's still at 10k
i know
:[
my music code 100% works on my pc with ffmpeg but on my vps ffmpeg it does not
its at the end i believe dream
it doesn't?
unless you're using an old build, no
no arm binaries for jda-nas
no one bothered compiling it for arm
@boreal acorn Was this working before?
Am thinking of getting a standalone server for my Lavalink
yes it works when my bot is running on my pc
what tier on galaxygate do you think would work
i'll just write my own thing tm
because i don't like LL's api
kinda annoying that it requires the ws connection
so are you gonna make it all http?
probably mixed
ik its the vps and ffmpeg @west raptor i just do not know how to fix it

it gives no errors nothing just does not play
Making sure your audio isn't muted
its not and i had others join it they cant here anything but as i said it works 100% fully when i run my bot on my pc with ffmpeg
@west raptor any ideas?
hmm is there anything i need to enable in the ffmpeg?
are you on ubuntu?
Nope, I'm on arch right now
:/ is where anything you need to install with ffmpeg?
I'm pretty sure apt-get gets all libs and packages it needs
:/
i just looked it up and i think ffmpeg was ment to install into /usr/local/share/ and /usr/bin/ but i only found it in /usr/bin/
:/
i think i found something on the ffmpeg forms im trying it now
would you need to restart the vps after installing it?
No it should work out of the box I dont know why it isnt working 

I guess you could try restarting I doubt you would need to though
doing it rn
I think yt is dying
https://i.imgur.com/mXj4H2q.png @topaz fjord just you
oh lol
ffmpeg works with ubuntu 18.04 correct?
yes
it should
also
your regex for playlist is a bit out of date
let me see if i can find the new
ik once i get ffmpeg working il remake it 
/^.*(youtu.be\/|list=)([^#\&\?]*).*/ here ya go
/^https?:\/\/(www.youtube.com|youtube.com)\/playlist(.*)$/
or that
ye ik
i just want ffmpeg to work it works fine on my pc but not on my ubuntu vps :/
@topaz fjord also i dont really know regex but wouldnt that not work if its list=
thats where | comes in
/^https?:\/\/(www.youtube.com|youtube.com)\/(playlist|list)(.*)$/
thats what I mean dream
xD
also im on arch and thats pretty different from ubuntu afaik
most commands will be the same though
if i wanted to move to lavalink what would i need to change, update






