#development
1 messages · Page 314 of 1
y tho
why use custom JS?
when HTML already has built in functions that handle this
your code just makes it harder
and doesn't even work for special characters
so basically I could put an entire essay in there with new lines and shit, and it would be correct URL format?
I don't think so
well gtg
because
i built a api that uses args to get the user
it uses ?name=USER NAME HERE
to get the user name
:v
someone help me D:
if (message.content.startsWith(prefix + 'createstreet')) {
message.channel.send('➡ Mention what channel you want to create the street in:');
const filter = m => message.author.id === m.author.id;
message.channel.awaitMessages(filter)
.then(collected => console.log(collected.size))
.catch(collected => console.log(`After a minute, only ${collected.size} out of 4 voted.`));
}
how would I use .then and .catch
(it's not completely modified so)
Promises
not
..is there some simple explanation as to what promises are
without the complicated in-depth stuff
ok want a nooby explanation?
you run the function, it does stuff
mm
but it takes time to do stuff
waiting
oh it's done
the function is a promise so it runs the other function in .then
fun
oh no error! it goes to catch
ah
promises are used when waiting for I/O
so basically .then == function inside a function
io being network, hard drive
function after function
async operation1!!!
oh
is there a way to make a bot that can use google translate? xD
hmm
thanks for this idea
@earnest phoenix found an api that works
and here are the language codes
pls no
inb4 sneklab/gtranslate
I am ciol
agree @earnest phoenix google lib is bad
^
Can someone tell me how to deploy discord.py to heroku?
Guys can you please tell me why it says that?
but look what I defined as user.
if (!message.guild.member.kickable) return message.reply("cant kick an admin");
message.guild.member.kick();
@umbral pelican like that?
It doesnt work
it's not a function
Ok I got it thanks
guild is define 🤔
it's throw an error that it's not
exports.run = function(guild) { //code }
it's an event
Guild is a event but events go to the functions.
like exports.run = function(message, client, args) { //code for Music };
ok thank you
@vital lark ```js
guild.createRole({
name: "muted",
color: "0x00FE86",
}).then(channel => channel.overwritePermissions(guild.id, {SEND_MESSAGES: false}));
No problem.
will this work?\
What if the Person has the Muted role?
It should create the role.
It does
}).then(muteRole => muteRole.overwritePermissions(guild.id, {SEND_MESSAGES: false}));
should It work @umbral pelican ?
nuh, it won't overwrite it
so what can I do?
it worked with command I had I deleted it and ctrl z didnt work 🤦
I cant remember what did I do
@fringe gyro can you read my dm?
Hmm, I dont think thats how find works
/./exec cat ../spoti-search/commands/discrim.js
wtf?
Did not mean to do that here
can you please explain how to ?
Look at the docs for find
so what are you trying to do
adding a channel overwrite or what
so the bot is making a muted role?
and the role has already been made?
yea
But I dont find out what to write before the function
cant find out*
I want to overwrite it so muteRole won't be able to write
but I cant find out what I need to find man
I made it before a week and somehow mute cmd got deleted
and I can't remember how to write this
hey
use awaits/async to make it so
I got the thing
that one thing runs after the other is completed
msg_array.map(m => m.delete().catch(console.error));
message.channel.send("✅ Successfully pruned " + messagecount + " messages in this server!");
setTimeout(function () {
client.user.lastMessage.delete();
}, 3000);
here
so when the first line completes
the second line runs
who are you talking to?
anyone who can help me
first why did you convert that to array
mhmmm... it shouldnt be an array
Collection already has map function
needs thonkku to upload it
wat
hahaha
that guide?
lmao
you know bot = selfbot with your account token @formal hatch
yes i know
i know stuff about selfbots in general
also yes i'm using that guide because i'm a noob
so I use it
@earnest phoenix gimmie emoji
Just wondering if anyone knows how to access files on heroku?
fs module
fs module?
fs module
what do you mean?
using nodejs?
No i'm using python
ah yes
rich embed builder
my old friend
@slow swan how to ping yourself 101 #commands
@slow swan great page right there
my favorite 403
403!!
BORFIDDEN
Is there an event handler for logouts in discord py
hi
@west skiff i mean it's not up there but there is alot of things that ain't on the api.
As far as I know, all the events are
Ok, thanks! 😄
How do I get CPU usage?
depends on language and os
https://github.com/arunoda/node-usage
Contribute to node-usage development by creating an account on GitHub. ...
Simple interface to lookup cpu and memory usage of any accessible process on
the ...
https://gist.github.com/pmuellr/8c349726392bb47da680410eb7904092
'use strict'. // see: https://github.com/nodejs/node/pull/6157. var startTime =
process.hrtime(). var startUsage = process.cpuUsage(). // spin the CPU for 500 ...
http://stackoverflow.com/questions/7773826/how-to-find-out-the-cpu-usage-for-node-js-process
Try looking at this code: https://github.com/last/healthjs.
http://stackoverflow.com/questions/14483173/cpu-usage-of-a-process-in-nodejs
Try node-usage for tracking CPU using the PID.
https://nodejs.org/api/process.html
nextTick(callback[, ...args]); process.pid; process.platform; process.release .....
method returns the user and system CPU time usage of the current process, in an
...
@wheat root
thats not node tho
@umbral pelican I know . Done alreasy
Ready*
https://nodejs.org/api/process.html @umbral pelican
Does anyone know how to make this box thing in discord .py? https://snag.gy/Na0tqL.jpg
mmk
bot arent allowed in here either
ctx being like the client object?
@sonic kindle you use python, right?
yes
@hoary crag you here?
yes
@commands.command(aliases=['eval'], hidden=True)
@checks.is_owner()
async def debug(self, ctx, *, code: str):
"""Evaluates code."""
code = code.strip('` ')
python = '`\`\`\py\n{}\n\`\`\`'
env = {
'bot': self.bot,
'ctx': ctx,
'message': ctx.message,
'guild': ctx.guild,
'channel': ctx.channel,
'author': ctx.author
}
env.update(globals())
try:
result = eval(code, env)
if inspect.isawaitable(result):
result = await result
except Exception as e:
await ctx.send(python.format(type(e).__name__ + ': ' + str(e)))
return
await ctx.send(python.format(result))```
when i run the commands
no, import into __main__
@bot.event
async def on_ready():
extensions = ['modules.admin', 'modules.repl', 'modules.info', 'modules.music']
for extension in extensions:
try:
bot.load_extension(extension)
except Exception as e:
print('Failed to load extension {}\n{}: {}'.format(extension, type(e).__name__, e))```
oh mean loading them
if that is what you mean i use this
sup?
smh
smh
spends 3 hours debugging code
turns out the problem was danny switch ctx and error in on_command_error
@tame rivet LOL me to buddy
🤣
I even read it in the docs and just forgot I was ready to kms
like seriously
Then after that
^
Ye it's nice af
Even tho I spent 3 weeks sharding before :/
As soon as it was stable boom autosharder
lol
tfw i dont even know how to shard
nice
bot = commands.AutoShardedBot(command_prefix="rw!", description='fucking rewritey')
I ran all shards in one file
but what about shard_id
ye
If you want it override the auto shards add shard_count=whatever
because i want to do something with change_presence and shit
then bot.sahrd_id and bot.sahrd_count
Here I'll share
i mean change_presence has the shard id thing
for x in range(bot.shard_count):
message = 'shard {}/{} | {} guilds | {} users'.format(x+1,bot.shard_count,servers, users)
game = discord.Game(name=message)
await bot.change_presence(game=game,shard_id=x)```
@bot.command()
async def shard(ctx):
shard = ctx.message.guild.shard_id + 1
em = discord.Embed(title="Your Guild is on shard:", description='{}/{}'.format(shard,bot.shard_count),
color=discord.Color.purple())
await ctx.channel.send(embed=em)```
enjoy
thanks man
@bot.event
async def on_ready():
for extension in initial_extensions:
try:
bot.load_extension(extension)
except Exception as e:
print('Failed to load extension {}\n{}: {}'.format(extension, type(e).__name__, e))
print('We have logged in as {0.user}'.format(bot))
print('Logged in as:')
print(bot.user.name)
print(bot.user.id)
print('oauth link:')
print(discord.utils.oauth_url(bot.user.id))
print("Servers",str(len(bot.guilds)))
print("Users",str(len(set(bot.get_all_members()))))
servers = str(len(bot.guilds))
users = str(len(set(bot.get_all_members())))
for x in range(bot.shard_count):
message = 'shard {}/{} | {} guilds | {} users'.format(x+1,bot.shard_count,servers, users)
game = discord.Game(name=message)
await bot.change_presence(game=game,shard_id=x)
if not hasattr(bot, 'uptime'):
bot.uptime = datetime.datetime.utcnow()
debug = any('debug' in arg.lower() for arg in sys.argv)
if debug:
print('Is running in Debug prefix is now dwd')
colour = ''.join([choice('0123456789ABCDEF') for x in range(6)])
colour = int(colour, 16)
time = datetime.datetime.now()
fmt = '[ %H:%M:%S ] %d-%B-%Y'
mirror = bot.get_channel(294514721317453824)
em = discord.Embed(title="I have restarted", colour=discord.Colour(value=colour))
em.set_author(name='Restart Log',url=bot.user.avatar_url)
em.add_field(name="Total servers", value=servers)
em.add_field(name="Total Users", value=users)
em.add_field(name="Total Shards", value=bot.shard_count)
em.add_field(name="This Shard", value=mirror.guild.shard_id)
em.set_footer(text=time.strftime(fmt))
await mirror.send(embed=em)```
my on_ready
@bot.event
async def on_ready():
extensions = ['modules.admin', 'modules.repl', 'modules.info', 'modules.music']
# await bot.change_presence(game=discord.Game(name='loading...'), status=discord.Status.dnd, afk=True)
for extension in extensions:
try:
bot.load_extension(extension)
except Exception as e:
# print(traceback.format_exc())
print('Failed to load extension {}\n{}: {}'.format(extension, type(e).__name__, e))
print('Logged in as:\n{0.name} (ID: {0.id})'.format(bot.user))
if not hasattr(bot, 'uptime'):
bot.uptime = datetime.datetime.utcnow()```
this is mine
ye same shit for the most part
rw!shard
ah not testing
welp
back to work
tag if needed
okay
lul
@sonic kindle looks like with autosharder we don't need to bother posting shard count to bot lists
same
no i want ot
my old way
'shard_id': str(self.bot.shard_id),
'shard_count': str(self.bot.shard_count),
'server_count': len(self.bot.servers)
no worky
ye how do i pull the shard id from the autosharder?
guild.shard_id
its guild
ye
makes it tough
was thinking arry
but havent had time to think of the logic
@bot.command()
async def shard(ctx):
shard = ctx.message.guild.shard_id + 1
em = discord.Embed(title="Your Guild is on shard:", description='{}/{}'.format(shard,bot.shard_count),
color=discord.Color.purple())
await ctx.channel.send(embed=em)```
my shard com
hmm
regarding page CSS/HTML, has anyone figured "when at top, be complete visible, when scrolled down, kinda hide the menu, when hovered over, show in full opacity" out?
just wondeing™
@umbral pelican When I try to do js case "help": //code break; I get a error... actually 2 errors. (ERRORS: [js] Declartion or Statement expected & [js] Need a ;.
did you even use switch correctly
I should Have
js client.on('message', (message) => { if (message.author.bot) return; if (message.author.equals(client.user)) return; if (!message.content.startsWith(prefix)) return; var args = message.content.substring(prefix.length).split(" "); switch(args[0]) { case "purge": let messagecount = parseInt(result); message.channel.fetchMessages({limit: messagecount}).then(messages => message.channel.bulkDelete(messages)); message.channel.send(`:white_check_mark: Deleted ${messagecount} message(s)!`) } break; case "": <- errors break; });
input something
Input what?
case can't be empty
I edited the case, I get the errors still.
also you didn't end switch
brackets much important
install linter to see ur mistakes
@abstract mango Use js and onscroll events (can't remember the exact syntax), if your scroll y is past a certain point add a class an minimize the top bar
@earnest phoenix linter won't install
You mean VS code?
or Notepad++?
those both are shit
WHAT editor then!?!
something like atom
so install linter on it
It wont let me; I get errors.
npm ERR! npm bugs linter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls linter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\BEEP\Desktop\BEEP\npm-debug.log```
I'm gonna watch yt
to do this
smh wat
why would you do that with npm
go to atom modules settings
and get js linter
^
threading.Thread(request.get('BLAH')).start()
if your going to use asyncio
you need to know about multithreading
it makes life so much easier
@noble hazel
@earnest phoenix @noble hazel @keen anvil We're in here.
that was fucking written by danny you know
so?
so he knows why he made that tag
also he get a ton of stupid question about people errors
so better freezing your bot to death?
you know what's more fun
using 8 langs to get http request from 8th lang and using other 7 to create child process exec for other lang exec till http request
loop.run_in_executor(executor=None, fn, *args)
my bots never had a problem with requests
¯_(ツ)_/¯
Mine haven't either lol
i dont see why everyone is hating on requests
theres disco you know
theres d.sneklab
whats that
but hey
if you think running requests is going to trigger you
what about running Flask, 3 mysql connections and a bot all in the same script
flask is not using event loops
oh yes same script
yeah
im not kidding
then in the ready event
and guess what
it doesnt crash
it doesnt break randomly
it just works™
i cant wait for your script to explode like a nuclear bomb
implying
that the only times ive had to reboot the bot was for an update
in the 10 months its existed. its not once crashed due to requests or flask
banné
@vital lark
yes
u want to learn music
-bots @vital lark
@obsidian bay
@lost rapids
-botinfo @obsidian bay
see c:
mhm
xd
Eris is better for performance
quaility is crap in d.js
LOL
Switch to Eris?!
if you want
only for music
sideofchips.co.uk LOL best domain name ever
¯_(ツ)_/¯
You could
Hmm Maybe.
-botinfo @lost rapids
Well.. custom per guild is pretty ehh
Yeah
you dont have to
yeah
lavaplayer ftw
lol music b0ts
o
I'm reluctant to ever make a music command
What does reluctant mean? I'm just curious.
so was i until i went. Eh
lol
My english is on point
pedantic is a nice word
@vital lark you will switch to eris then you will want to die
lol
-botinfo @peak summit
then make bot
Then realize bot is shit, then rewrite bot
then realize discord api isn't good itself. then quit discord.
Yep
Then rewrite discord
js
they seem to be looking alota Software Engineers
¯_(ツ)_/¯
shhh
where
@bitter sundial here
what is god saying
"needs more good code because I created too much shit one"
inb4 sneklab/ify
how do you add guild count? Discord.Net 1.0, c#
#312614469819826177 isn't working
Na body
¯_(ツ)_/¯
¯_(ツ)_/¯
¯_(ツ)_/¯
¯_(ツ)_/¯
¯_(ツ)_/¯
¯_(ツ)_/¯
¯_(ツ)_/¯
¯_(ツ)_/¯
¯_(ツ)_/¯
¯_(ツ)_/¯
¯_(ツ)_/¯
¯_(ツ)_/¯
combo breaker
The shrug shall not stop
The shrug shall not stop
The shrug shall not stop
The shrug shall stop
😦
:(
:(
:(
:(
:(
:(
:(
:(
:)


Does anyone know how to build the DSharpPlus.Commands Package?
you send the token here and we take care of it for you
^
r u sure

anyone know how to measure uptime/time started?
in python :P
actually, time started is already done
just need the uptime now
async uptime {
h; hours
m; mintues
s; seconds
seconds=(1000 % 60 % 60)
minutes=(1000 % 60 %60)
hours=(1000 % 60 % 60 % 24)
}; ```

Its not reall
lul
does anyone know the ratio for knowing if a server is a bot server
Id say 40% with 20 or more bots
^
I usually go 50% with 15 bots
hey dose any one know if ther a bot thats like tamagotchi were you have to feed it and take care of it
and if you fail its dies and you have to reset it
hmm
No but that's a great idea
taiken
bought domain already for it
will be great bot
i have full tools to do image interaction
also have plan to create video chat over user bot to user if he wants to see his pet live
&
-help
@somber trail wrong channel bud
Can someone help me later on?
https://hastebin.com/ahupotoguk.swift
Hey, so as you can see in the code above Im trying to do custom prefix command can you please help me , everything is good but I dont know how to set the command handler for the custom prefix, and if i'll do row.prefix row wont be define
Thanks for the ones who will help
@umbral pelican here you go
What happens when you try to run it?
no errors... I just dont know how to use the custom prefix inside of my command handler
The DataBase works great
command handler** sorry.. my bad
You don't change the content of prefix anywhere, so it's still ~
run an sql query to get it
wdym
select prefix from prefixes where guildid = guild.id
something similar to that
.then(row => prefix = row.prefix)
I now that's what I want to do
but if ill do that insted of prefix inside the command handler it won't work
cause it does not define
What?
What library are you using to talk to your database?
@icy sorrel js
@umbral pelican It is not a thing actually.. cmd handler is outside the arrow function
Are you using a database package called js?
Nono
Im using this one
I'd recommend you use KnexJS instead, it's a wrapper for a whole bunch of SQL packages that makes it a whole lot eaiser to work with databases
do you even know what is my issue man?
You can't read something from your select statement?
I need row.prefix to be insted of
Why don't you just move the whole thing into your promise then statement then? so you have access to the property
believe me I tried
If you have access to your row variable inside of your promise, moving your logic that checks for the prefix inside the promise should solve your issue
I can send you some examples of how I do it in my own bot
Gotta run in a bit tho
Alrighty
anybody know what is wrong with this code cos i'm stupid and forget it
Mew.on('message', (message) => {
if (message.content === "^^NameMC") {
message.channel.sendMessage('https://namemc.com/s/'+args.join(" "))};
});
ohhh
I think I see
nvm
when I do this
Mew.on('message', (message) => {
if (message.content === "^^NameMC") {
message.channel.sendMessage('https://namemc.com/s/'+args.join(" "))};
});
I get
ReferenceError: args is not defined
at CommandoClient.Mew.on (C:\Users\User\Documents\mew-bot\index.js:535:57)
at emitOne (events.js:101:20)
at CommandoClient.emit (events.js:189:7)
at MessageCreateHandler.handle (C:\Users\User\Documents\mew-bot\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js
:9:34)
at WebSocket.onMessage (C:\Users\User\Documents\mew-bot\node_modules\ws\lib\WebSocket.js:442:14)
at emitTwo (events.js:106:13)
at WebSocket.emit (events.js:192:7)
at Receiver.ontext (C:\Users\User\Documents\mew-bot\node_modules\ws\lib\WebSocket.js:841:10)
at C:\Users\User\Documents\mew-bot\node_modules\ws\lib\Receiver.js:536:18
at Receiver.applyExtensions (C:\Users\User\Documents\mew-bot\node_modules\ws\lib\Receiver.js:371:5)
I'm stupid and can't remember how to fix
@cunning forge That is because "args" variable is not defined
Where are you getting that from?
should of noticed that
Lol
im getting it from a github page
before "sendMessage", put:
var args = message.content.split(" ").slice(1);
kek
before the sendMessage line*
message is not defined
oh wait
put it in wrong place
^^NameMC Notch
^^NameMC
^^NameMC
^^NameMC Notch
^^NameMC
(node:4052) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Forbidden
(node:4052) 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.
aka it no work
I'm guessing it's unable to send the message then.
yo @cedar garden, you have some time?
for what
I'm trying to self host @willow field but I'm kinda struggling
can you help out?
Specifically with the database name. I think there's something specific I need to configure for the database name
I just entered mydb but that seems to be wrong?
@cedar garden you there? D:
do you have your rdb dash open @uncut slate
I think so.
open your rdb dash
mhm
what does it look like
uhh
table name cooldowns, correct?
@cedar garden 
I assume if I run into any other database mydb doesn't exist in table blah I just create the table
It would be nice for someone else to host photobox for me
I've got a VPS laying around, actually. But it's not super strong.
❯_ lscpu
Info:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 63
Model name: Intel(R) Xeon(R) CPU @ 2.30GHz
Stepping: 0
CPU MHz: 2300.000
BogoMIPS: 4600.00
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 46080K
NUMA node0 CPU(s): 0
how much memory?
❯_ free -h
Info:
total used free shared buffers cached
Mem: 3.6G 1.3G 2.3G 72M 160M 861M
-/+ buffers/cache: 339M 3.3G
Swap: 0B 0B 0B
~2.3GB available
hah I'm kinda scared of fucking something up though
¯_(ツ)_/¯
I'll have to look into how to create the tables on linux/ssh etc
but yeah, let me know if you're interested
Uhh
bots cant talk here
useradd -m snazzah
Not at my PC right now, I wonder how far I can get through my bash command 
❯_ useradd -m snazzah
Errors:
/bin/sh: 1: useradd: not found
❯_ sudo useradd -m snazzah
So I assume that'd need input
yes
mk
my test Server ;p
with all ma slaves
and they can't tak
cuz they didn't mobile verify
xd
im still scared from yesterday lol
xd
im working on a html css button ;D
going well sofar
my Q is, can i actually upload buttons to my page on the site ;?
ah oki
Right now my bot Minecord picks a random color for an embed. Should I switch to green or gray or just leave it?
I personally dislike random embeds + you can probably save <=1ms of time if you preset most of the stuff
lol
switch to d.js
no
@tame rivet 1. Don't
^
but i wanna be that guy

Guild owner is b1nzy, dm's him
oooo thats a better idea
wot
you wont
Ahh ez I made that like 3 days ago
2 secs
@commands.command(hidden=True)
@checks.is_owner()
async def announcement(self,ctx, *, message: str):
"""send a msg to ALL guilds.""
guilds = list(self.bot.guilds)
for guild in guilds:
try:
await guild.default_channel.send(message)
except discord.Forbidden:
continue
finally:
print('Sent message to {}'.format(guild.name.encode('utf-8')))
await asyncio.sleep(15)```
@tame rivet
danke!
If you wanta get fancy on that except check guild.channels till it finds one with send Perms and send the msg there
It's being b1nzy'd. Have a wait time before each message (5 seconds)
I almost never use it so I wasn't bothered to add it
15 secs
On the bottom
It's slow but doesn't get ratelimitied
anyone do discord oauth? are these the right args? {'grant_type': 'authorization_code', 'client_id': 'xxxxxx', 'redirect_uri': 'xxxxx', 'code': 'xxxxxx', 'client_secret': 'xxxxxx'}
also it has to be response_type=code
__ __ _ _ ____ _
| \/ (_)_ __ __| | _____ | __ )| | _____ ___ __
| |\/| | | '_ \ / _` | |_____| | _ \| |/ _ \ \ /\ / / '_ \
| | | | | | | | (_| | |_____| | |_) | | (_) \ V V /| | | |
|_| |_|_|_| |_|\__,_| |____/|_|\___/ \_/\_/ |_| |_|
It doesnt make history per server and if ill change get from guildid it will set bans to everyone and not to specific user
Can you help me with that please?
Unfortunately unsure.. I'm not used to that syntax personally.
@little stone K thx
@wheat root idk but maybe performance wise it's not the best idea to invoke a sql query in a command
depending on how much data you have in there
caching will be come ur bae
oh nono
@scenic crest read in general ty anyway..
How can I update bancount if not inside the ban command or event? 🤔
you'd have to do it inside the event
Why
either you create a new thread and do it concurrently (idk if that's possible in js)
how else are you gonna do it
you have to call the method
you're not gonna get away with not invoking a query
so you can either make it async or hope that it doesn't take too long
When I punish someone it is automatically updates
one thing for note this way you are doing is not friendly for storage
@earnest phoenix what is? 🤔
your name mfg
Lel
So what will be friendly
His
having good handler first
🥉
@scenic crest i am theris
same
SQLQuery("SELECT * FROM ${Table.GUILDS.tableName}", dataSource).select(CGuild::class.java)
.filterIsInstance<CGuild>()
.forEach {
Cache.guilds.put(it.id, it)
}```
this maps the result to an object
then caches it
same
what lang
js
ew
banned
ok
banne.services
😑 🔫
Lmaooo
I hated js
i hated you
What lib are you? @scenic crest
JDA on Kotlin
lavaplayer.js wen?
lmao
never
do they still use ytdl
yes noobs use it
-botinfo @shadow charm
we pros get youtube video source ourselfs then find opus stream and stream it
@inner jewel JVM languages + Lavaplayers 💪
and that is much better than lavaplayer
wrong timing
When im streaming moosik if it gets to 3 servers it is laggy as fuck
nice meme
- c
:trollface:
snekplayer is js so it is automatically better
Is it a module?
-bots @scenic crest
@cobalt hinge 
main bot is http://arraybot.xyz
ok sp py args = { 'response_type': 'code', 'client_id': parameters[provider]['app_id'], 'redirect_uri': self.callback_uri(provider), 'scope': parameters[provider]['scope'] } gets me the code but i get 403s trying to get the token with the code ```py
args = {
'code': code,
'client_id': parameters[provider]['app_id'],
'client_secret': parameters[provider]['app_secret'],
'redirect_uri': self.callback_uri(provider),
'grant_type': 'authorization_code',
}```@earnest phoenix @bitter sundial sry for the tag but you are the only 2 that even responded anywhere the guys on the api server told me to read the docs and that just points me to `please see RFC 6749` :/
how are you sending it
@sonic kindle
is it a POST with content-type application/x-www-form-urlencoded
@static raft help
it is
still 403
🔫
all i wanted was users name and avatar but fuck this lol ive been fucking with for like 27 hours now
idfc anymore
wow
can you show the code requesting?
are you sure the secred and client id are right?
code=Xdr5iMeZmtuDJUOP7CCfXuFdqn9W19&client_id=307311944338112512&grant_type=authorization_code&redirect_uri=http%3A%2F%2Fmew.tom.systems%3A5554%2Fauth%2Fdiscord%2Fcallback&response_type=code&client_secret=oKF4h1p9mwvKx-_pKaaJuXftmBHu3juU
urlencoded b'code=Xdr5iMeZmtuDJUOP7CCfXuFdqn9W19&client_id=307311944338112512&grant_type=authorization_code&redirect_uri=http%3A%2F%2Fmew.tom.systems%3A5554%2Fauth%2Fdiscord%2Fcallback&response_type=code&client_secret=oKF4h1p9mwvKx-_pKaaJuXftmBHu3juU'
idc my secret is there
test bot anyway
that gets me a 403
maybe im just fucking dumb and missing something at this point idek anymore
oKF4h1p9mwvKx-_pKaaJuXftmBHu3juU'
wtf is oKF4h1p9mwvKx-_pKaaJuXftmBHu3juU'
XD
i alread killed it lol
to just try a diff secret
same fucking 403
why is this this hard 
no need for response_type in the token request
same 403 with out it

................
That name though
perfectly fine
how you learn js?
Yourself.
lmao
use codeacademy to get into it
thanks and memes kys
report b4nzy soon
ye
well my answer wasn't meme at all 🤔
What all do you need for Music Bot?
I got it installed, but i forgot whats its called
make it
🦏


Should I do Eris or Music & Commands in D.js?
