#development
1 messages · Page 1316 of 1
so what do i do?
put in the url as the proper format
http://ip:port/path
ip is your vps ip, port is 5000, path is /dblwebhook
yes
thats the url the webhook posts are sent to
wait where do i put http://ip:port/path in?
the webhook url
yeah
so like this?
Can someone tell me what is the meaning of COGS?
still not working
yup
both auths are the same?
import discord
import dbl
from discord.ext import commands, tasks
import asyncio
import json
class TopGG(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.token = f"{self.bot.top_gg_token}"
self.dblpy = dbl.DBLClient(self.bot, self.token, webhook_path='/dblwebhook', webhook_auth='Flantic', webhook_port=5000, autopost=True)
@commands.Cog.listener()
async def on_guild_post(self):
print(f"Posted guild count: {len(self.bot.guilds)}")
@commands.Cog.listener()
async def on_dbl_vote(self, data):
print("Received a test upvote:", "\n", data, sep="")
@commands.Cog.listener()
async def on_dbl_test(self, data):
print("Received a test upvote:", "\n", data, sep="")
def setup(bot):
bot.add_cog(TopGG(bot))
dw ill change auth later
only other thing i can think of is the problem with dbl.DBLClient not being a method.
which shiv or another py dev will have to figure out
because its beyond me
for anyone who comes after this, this is what i'm talking about.
https://discordapp.com/channels/264445053596991498/272764566411149314/765053259865260062
dblpy version 0.4.0
If you wanted, you could. Just be careful with your bot running untrustworthy code
If anything, I would say you don't want your bot being able to trust your user one bit.
any api that can return images only from reddit
the reddit api
throw new Error('error message') @karmic compass
ah thank you :)
if(!message.member.voice.channel) return message.channel.send('please join a voice channel first.')
not working
@earnest phoenix Make sure you don't have any files or folders named dbl created by you
@tardy hornet what's the error?
@tardy hornet I don't get why it isn't working.
wdym
might wanna readd DiscordPHP to the list again, as the project is active again
how can we make a edit embed command (nodejs)
@earnest phoenix wdym?
@tardy hornet what's the error?
@earnest phoenix TypeError: Cannot read property 'join' of null
someone please help me
Its says that you cant join something together that isn’t there
Wats the code
Like where the error originate from
thats the join and leave command:
case 'join':
message.member.voice.channel.join()
if(!message.member.voice.channel) return message.channel.send('please join a voice channel first.')
break;
case 'leave':
bot.voice.channel.leave()
if(!bot.voice.channel) return message.channel.send('I need to be in a voice channel first.')
break;
```
Did you use a switch above?
how can we make a edit embed command (nodejs)
msg.edit
msg.edit
@static acorn i want to edit a message sent by the bot long ago
bro
how will the bot fetch that message
¯_(ツ)_/¯
thats what i want
@tardy hornet channel is null
@next flax
you only gave us one piece of code
but how
I'm 99% sure you're checking if the member is in a voice channel AFTER you're trying to join the channel
Isn't it obvious why the error occurs?
The bot will try to join the channel anyways
Then remind the member AFTER it already tried to join the channel
Yeah he's actually doing that just saw the code
I'm 99% sure you're checking if the member is in a voice channel AFTER you're trying to join the channel
Isn't it obvious why the error occurs?
@earnest phoenix
yes indeed
now it fixed
bruh
?
It won't work
case 'leave':
if(!bot.voice.channel) return message.channel.send('I need to be in a voice channel first.')
bot.voice.channel.leave()
break;
now that, he is not leaving the channel
bot
ok
What do you trying to do? @next flax
@tardy hornet js if (!message.guild.me.voice.channel) return message.channel.send('not in the voice channel'); message.member.voice.channel.leave();
im trying to make a edit embed command @earnest phoenix
then firstly you should send a embed to channel.
and edit it
i want to make a command not a function
nani
like after sending embed auto edit
oo
@next flax turk?
u making a ping like command?
oh
hm
:(
@earnest phoenix nope
eng only
Ye
😂
😂
😂
English only
yes
okay
hm
Non-English in #general-int
come dm
@slender thistle sorry shiv : (
case 'pimpostor':
if(!message.member.voice.channel) return message.channel.send('please join a voice channel first.')
message.member.voice.channel.join().then(connection => {
connection.play(ytdl('https://www.youtube.com/watch?v=uG45me0ekts&ab_channel=Impostor', { quality: 'highestaudio' }));
});
its should work, i just dont know how to define the ytdl
Then fill in between (‘’) what ytdl package you installed
Yeah
(node:16156) UnhandledPromiseRejectionWarning: Error: FFmpeg/avconv not found!
(node:16156) UnhandledPromiseRejectionWarning: Error: FFmpeg/avconv not found!
i downloaded ffmpeg, still same error
is there a plugin for this picture for the files?
Like making a folder and there is a picture next to it.
What is the plugin called?
What is the plugin called?
@feral aspen visual studio code's features
What is the extension called?
What is the extension called?
@feral aspen visual studio code
Is there any list of fonts for canvas ?
What are good VPS'S
it’s fine
AWS is bad for hosting bots?
@shy steeple yes
hmm they have a 1 year trial I think
That’s shit tho
people mostly talk about the free versions so I said no for the free one
imma try galaxygate I have seen good reviews for that hostinf service
@shy steeple just use Vultr
Galaxy Gate or Vultr?
I'd say Vultr
Nah, galaxy gate
idk
ok
never used it but i like it
Interesting
Well, if you need the cheapest one, try search on this website
https://serverhunter.com
There are some vps that 10£ or less for 1-2 gb/year
(node:16156) UnhandledPromiseRejectionWarning: Error: FFmpeg/avconv not found!
i downloaded ffmpeg, still same error
Hm
@tardy hornet FFmpeg/avconv
Google it
Just like this
member.hasPermission('ADMINISTRATOR') ? '✅' : '❌'
Any way i could host my bot for free but not heroku?
Any way i could host my bot for free but not heroku?
@hearty wren gitHUB
i downloaded ffmpeg from google and npm i ffmpeg and its still giving me the error: (node:9252) UnhandledPromiseRejectionWarning: Error: FFmpeg/avconv not found!
then it will work?
yes
install that then
tyyyy
but
case 'pimpostor':
if(!message.member.voice.channel) return message.channel.send('please join a voice channel first.')
message.member.voice.channel.join().then(connection => {
connection.play(ytdl('https://www.youtube.com/watch?v=uG45me0ekts&ab_channel=Impostor', { quality: 'highestaudio' }));
message.member.voice.channel.leave()
});
break;
i want the bot to disconnect after he do that
make the voice channel join a variable
then you can do <variable>.on("end", () => {})
Cant even be poor in peace anymore
case 'leave':
if (!message.guild.me.voice.channel) return message.channel.send('not in the voice channel');
message.member.voice.channel.leave();
break;
if in not in a vc and i type it he is crashing
@misty sigil wait wot? channel is an event emitter?
make the voice channel join a variable
then you can do <variable>.on("end", () => {})
sorry, caught this mid way and didnt read much context
just seemed weird the way its worded
since channel isnt an emitter, and emitters need to be declared
i made a bingo number generator
bold of you to assume mine looked any good

@misty sigil hey,
case 'leave':
if (!message.guild.me.voice.channel) return message.channel.send('not in the voice channel');
message.member.voice.channel.leave();
break;
if in not in a vc and i type it he is crashing
@hearty wren gitHUB
@tardy hornet Cwickks wants to know your location.
heroku
i think
but can you help me?
case 'leave':
if (!message.guild.me.voice.channel) return message.channel.send('not in the voice channel');
message.member.voice.channel.leave();
break;
if in not in a vc and i type it he is crashing
wdym .me?
the bot as the guild member
I don't see why its not working
@pale vessel
case 'leave':
if (!message.guild.me.voice.channel) return message.channel.send('not in the voice channel');
message.member.voice.channel.leave();
break;
if in not in a vc and i type it he is crashing
its working
but
what's the error?
if in not in a vc and i type (prefix)leaveits crashing
if (!message.member.voice.channel) return message.channel.send('not in a voice channel')
what's the error?
@pale vessel TypeError: Cannot read property 'leave' of null
yeah
if(user.hasPermission("KICK_MEMBERS")) {
if (message.member.hasPermission("KICK_MEMBERS")){
console.log("Has permission")
} else {
console.log("Doesn't have permission")
}
@pale vessel !
case 'leave':
if (!message.member.voice.channel) return message.channel.send('You are not in a voice channel')
if (!message.guild.me.voice.channel) return message.channel.send('The bot is not in a voice channel');
if (message.guild.me.voice.channel.id !== message.member.voice.channel.id) return message.channel.send('You are not in the voice channel the bot is in')
message.member.voice.channel.leave();
break;
instead of member?
you checked for message.guild.me but you used message.member instead for leaving
oh
So you want random people to just be typing ?leave randomly, then the bot will leave automatically without the person that ran the command, not in the same voice channel as the bot?
sorry grammar is not happy this days
ok
you checked for message.guild.me but you used message.member instead for leaving
@pale vessel now hes gonna get an error if someone typed the command, if the bot is not in a voice channel
is there a dedicated channel to ask for mongoDB help, or just ask here?
where are you using .find
how to do a action to vote a bot?
is there a dedicated channel to ask for mongoDB help, or just ask here?
@upper current here
@earnest phoenix #topgg-api
okay I solved it
Having a hard time getting mongo to save when I try to add a qty. It logs properly with console log, but it won't actually go up in numbers in the DB
const specificItem = inventory.items.questItems.find((obj) => obj.item === 'something');
if (specificItem) {
specificItem.qty++;
await inventory.save()
} else {
inventory.items.questItems.push({
item: 'something',
qty: 1
});
await inventory.save();
}
``` and i'm not sure what i'm doing wrong. but i've been at this for 3 or 4 days now and i'm getting highly discouraged.
And, ty Spooky.
tiem to start the website
how do i make that if args[1] isnt a youtube link it will return?
Use regex.
how do i make that if args[1] isnt a youtube link it will return?
@tardy hornetif (message.content.includes(https://youtu)) return
take note that some will be youtu.be
and some will be youtube.com
Hmm and http or even without the protocol?
With or without www
its dont it green
oh right
How can I add a user cooldown to my command ?
@sand dune
//creates an array that includes all the members that recently "commanded"?
let x = []
//if the user id is in x
if (x.has(message.author.id)) return message.reply("a little too quick there.");
//if he is not in x
x.add(message.author.id);
//remove after 4000ms
setTimeout(() => {
x.delete(message.author.id);
}, 4000);
Which will fail a hell lot of times but hey it’s ur code not mine.
dont add www
if (!args.length || !message.content.includes('https://youtu')) return
```Just add this on the first line of your command
Pretty sure you can just check if a message has a link
@tardy hornet it has to be in a string
// puts it to notes
Pretty sure you can just check if a message has a link
@blissful coral Then the bot may think that it is a youtube link if its not a youtube link??????
its ok i worked it out
Which will return if you use any subdomain for example m.youtube... or an URL without protocol and it’s even not an URL to a video, just youtube.
Wdym cwicks
Use regex.
Oh only Youtube
Yeah my b
HAHHAHA
yeah
Lmao
You can do a array of different links that you want to do it on
And check for each one and if it finds one do whatever it does
Or just use regex (5th time now)
if (!args.length || (!message.content.includes('youtu') && !message.content.includes('https://'))) return
here
lol
And again with https protocol
The url works with the protocol as well or mobile links... whatever
Have you seen a youtube site that doesn't have a secure protocol?????????
Im sure yu haven't
ok bye
lol you don’t need the protocol
Lol
ah the expert is here lmao
message.content.match(/https?\:\/\/(youtube\.com|youtu\.be)\/(.*)/)``` regex time
Compared to the shit you argue, yes
If you’re able to understand it
hAh
Voltrex is here
ok
I can understand it slightly
Regex is like letting your cat dance on your keyboard
lmao
Fr fr
I am using discord.py, and I want to repeat something every day at 12:00 AM.
Yo where that computer at voltrex 
How will i do this
I don't want to check every x seconds that the time is 12:00 AM
Yo where that computer at voltrex
@blissful coral Still not here, maybe here, just as transparent as my dad that left to buy milk and never came back, lol
Feel that
message.content.match(/https?\:\/\/(youtube\.com|youtu\.be)\/.*/)```
It’s not even needed to match the (.*) ... just .*
Darn markdown...
I know, just in case if you want to match what the video ID was
I am using discord.py, and I want to repeat something every day at 12:00 AM.
How will i do this
Great looks like u know how to use regex, God thanks at least one
@earnest phoenix Whats this?(.*)
That’s a match
@carmine summit \.* means it matches many dots in a row, .* means that it matches everything in a row
why does it have to have *
(Group)
why the *
Read what i said
define row
. Matches any character (one character)
. matches "a" in "apple"
.* matches "apple" in "apple"
IT MAKES 0 SENSE
That's the whole meaning of regex
I’ve no words
It's something cool but makes no sense, regex™️
so .* is gonna search until the end?
. Is a wildcard character
- Is an amount
can someone help pls
I can understand everything else, BUT THIS (.*) MAKES 0 SENSE
It does if you wanna catch the match group
It's a grouped pattern that matches any character that is zero or less, what's so hard to understand about it?
Because it's optional
so meaning you can just not include it?
\\ <= special character escaper
* <= match everything after the preceded value
. <= matches everything
^ <= Checks if string starts with the given value
$ checks if string ends with the given value
? <= optional value
() <= groups
[] <= character groups
And many more
help pls
Helping... what do u need?
Aple would match but I'm typoing this morning
I am using discord.py, and I want to repeat something every day at 12:00 AM.
help pls
I am using discord.py, and I want to repeat something every day at 12:00 AM.
@earnest phoenix Same but im in discord.js
Use regexr.com
Or www.regex101.com
Also very beginner friendly and good to learn
im using discord.js and i need help.
i want to set the bot status to the guild member count pls help:(
@earnest phoenix
client.user.setPresence({
status: 'online',
activity: {
name: client.guilds.cache.size,
type: 'PLAYING'
}
})
```CONGRATULATIONS YOU CLAIMED YOUR CODE OF THE YEAR, YOU CANNOT ASK ANYMORE QUESTIONS UNTIL 365 DAYS OR YOU WILL BE INSTANTLY BANNED
from datetime import datetime
from threading import Timer
x=datetime.today()
y=x.replace(day=x.day, hour=6, minute=32, second=0, microsecond=0)
delta_t=y-x
secs=delta_t.seconds+1
def hello_world():
print("hello world")
#...
t = Timer(secs, hello_world)
t.start()

im using discord.js and i need help.
i want to set the bot status to the guild member count pls help:(
@earnest phoenixjs <client>.user.setActivity(`${<client>.guilds.cache.filter(g => g.available).map(g => g.memberCount).reduce((a, b) => a + b).toLocaleString()} members`, { type: "WATCHING" })
this code is not working
Omg
Me typing: am i a joke to you
lmao

Hello....can I join a clan
Clan?
Wrong channel, wrong Discord, wrong anything..
<client>.guilds.cache.filter(g => g.available).map(g => g.memberCount).reduce((a, b) => a + b).toLocaleString()
dUDE YOU CRAZY?
Yes i am, coding everything on mobile is crazy itself
Should this code be working?
from datetime import datetime
from threading import Timer
x=datetime.today()
y=x.replace(day=x.day, hour=6, minute=32, second=0, microsecond=0)
delta_t=y-x
secs=delta_t.seconds+1
def hello_world():
print("hello world")
#...
t = Timer(secs, hello_world)
t.start()
Forward assault is a game right?????
I'm new plz guide me about it?

#rules-and-info will guide you
Forward assault
This is development not a game guide

Ok ...thanks by the way😊😢
Well back to Factorio I guess...
@earnest phoenix Can I see how you split you eval command then control it with reactions?

I use my own package
Lol
Dude you have a package?
Of course
kewl
python 
How many years of coding experience you have?
Python lulw
Name of it is string-toolkit btw, ads
Phone coding experience*
Infinity years
lmao
coding on phone, op
Well i coded everything on mobile
ngl voltrex is better than me and he writes on phone 

Idk why did i went through hell
should be renamed to #development-trolls
Everyone says that lol
I wanna see what voltrex could do on pc
more powerfull
News: voltrex hacked life and reprogrammed it
My bot is in 51 servers now
upload it in github, and everyone fork iy
and its still spagetthi code
it*
News: voltrex hacked life and reprogrammed it
@earnest phoenix changelog
- removed covid
Changelog:
- removed year 2020 because it was garbage
Hell yea
Introducing 2020 v2
- removed covid
- added better memes
- fixed discord staff
- fixed discord mobile
- fixed life
- added back dev badge
- turned mods from weebs to normal
plz voltrex bring back the badge
Dev badge?
yes please

uh
Mods watching be like: wtf is happening
Dev badge is just like your dad
Gone

Our dad is gone
On another note, yes
I don't speak java
wait wtf
Yea but the oop usage in Java is fucking crazy
what we doing?
i may have made an infinite-ish loop
@opal plank how
We doin ur mom
Java is a great language, but I can't say it is powerful. It's more great as a teaching tool.
development more like shitpost
@commands.command(hidden=True)
@commands.is_owner()
async def edit(self, ctx, user_id: int, total: int, count: int, last_time: int=None):
"""Edit a user's entry in the dict or add a new one"""
if last_time:
self.bot.count[user_id] = {"id": user_id, "total": total, "count": count, "last_time": last_time}
else:
self.bot.count[user_id] = {"id": user_id, "total": total, "count": count}
await ctx.send("Done")
i have this code that works great but i dont have acess to my bot acct anymore is there a way to restrict to user id instead
For someone that programs in multiple language, it's not as powerful as you would think it is
Java is one of the of powerful out there right?
Java is indeed powerful, just that it's syntax is cancer
I mean it's powerful, but it's not as powerful as other ones
@sudden tulip use commands.check decorator or pass owner_id/ids to the bot object
what do you mean you don’t have your bot account anymore?
@swift umbra i dont remember the password, but my bot is on like 50 guilds

ts for java be like TypeJava
Makes it more powerful
Typeva?
The fuck
JavaScript => TypeScript
JaVa => TypeVa
makes sense to me
How to make discord bot in html
i wonder if its doable with a macro though
i exclusivly make my bot in ms excel 1998
Wait you are joking about the case part
. I don't think that is physically pissible
setup a macro, and loop ACK's
@earnest phoenix scripts
Css*
HTML bot, gg
html bot 
that would be funny
Glass bot 
Imagine if someone actually joined the chat and pulled out a bot made in html
well, html + js bot is possible
It’s possible
html only bot is kinda easy
I mean is using script tags consider pure html or not
script tags uses JavaScript inside so we don't touch those
Yea
OLOL
Can you imitate window.onload in node.js so it executes the code when the node console is ready?
dont forget the intents @swift umbra
But dude I want to see someone make a library for glass
that would be hilarious
The hell is glass
brainfuck discord bot only
Esolang*
Glass is an esoteric programming language developed by Gregor Richards in 2005. It combines an unintuitive postfix notation with heavy object-orientation, requiring extensive juggling of a main stack combined with its object-oriented structure.
^^^^

tf is esolang
is someone know how to get message author avatar url and get it in a embed in discord.js?
Imagine making a bot in binary
It's so fucking bad
is someone know how to get message author avatar url and get it in a embed in discord.js?
@earnest phoenixjs message.author.displayAvatarURL()
@earnest phoenix ez pz
thanks
Use js MessageEmbed.setImage() to set it
like this?
Yea, it's even possible to make a bot in binary, well if you understand binary, hell
We are making fun of languages that shouldn't be used to make a discord bot.
@earnest phoenix Yes
Lmao
me n da boyz using asdf to make a discord bot
Since which dev was ever productive lol
fax
pog
We should do bot dev in english lmao
Ah yes, me making a bot in baguette english
Yes
You start html just like you start a car
npm start?
Put a key in it
voltrex
i give up
"making windows"?
making windows
Lmao peachy
const readline = require("readline");
readline.question(q, c);
TypeError: readline.question is not a function
w h a t
Idk man, want to recreate a new version of Windows?
New windows 69420
by head developer
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
that's your start for readline
yeah
but i did this:
const readline = require("readline").createInterface({
input: process.stdin,
output: process.stdout
})
because i'm lazy to create a new variable for the interface
¯_(ツ)_/¯
@earnest phoenix something like electron
why do i randomly have discord.js webpack stuff open
I wish there is a coding language that is just english
it would be harder
CAN someone help me send an automated message at 9:00 AM?
because not everyone can gramMer
PLEASE
@earnest phoenix if os.time
if process.time
kk
when the bot turns on display "Playing Minecraft"
idek
I wish there is a coding language that is just english
@carmine summit welcome to Python, one of the weirdest and coolest programming languages in the world whose syntax is similar to English
If someone said "?ping" , then say "pong".
when the bot turns on display "Playing Minecraft"
@sudden tulip coding in english
If someone said "?ping" , then say "pong".
@carmine summit bruh
basic
basic is uhhh
@earnest phoenix something like npm app but its broekn
fuck u i make my bot in batch
The w o t
If someone said "?ping", Get the time on when the message is sent, then subtract it to the date now, then send it
E++
wait you can style text in web console API 
and one question
i have a code for eval thats doesnt work
i typing !eval client
imagine having a lot of commands without using command handler
@pearl trail Well i don't have a command handler because i coded the entire bot on mobile, managing them in mobile would be beyond hell
and doesnt work

the code is
i have a code for eval thats doesnt work
@earnest phoenix thank god at least nobody can wreck your bot using it
@pearl trail Well i don't have a command handler because i coded the entire bot on mobile, managing them in mobile would be beyond hell
Voltrex Master#0001 omg![]()
aight, i'm going to sleep. cyaa
Great, my nose is bleeding
@earnest phoenix Because it has way too many characters, it can't fit in one message
Great, my nose is bleeding
@carmine summit the inside of your mask is now BLOOD
You need a pagination system
You need a pagination system
@earnest phoenix no we need a pogey nation country
You need a pagination system
@earnest phoenix whats that?
nation
yeah
Something that makes pages and reactions for you to interate through them without breaking the message
my kitten is vibin next to my laptop's vent for warmth
@sudden tulip lol but #general for cat talk
Something that makes pages and reactions for you to interate through them without breaking the message
@earnest phoenix ohh
@earnest phoenix didnt even realise i was in this server
"url" is an API, get the data in it, then look into object, then data, then playerData, then send it here.
I think I did it
englishScript
i meant to go in my server
101
Also is it a dumb idea to make a node.js app that can do minecraft java edition shit even though javascript and java are step brothers that hate each other
Because I just did
minecraft.js
no
actually i found an npm proj for that
fallguys.js
among us is made of unity
Make gta v in js
actually i found an npm proj for that
@carmine summitthanks for ruining my motivation
gtav.js
steam.js
among us is made of unity
@carmine summit wdymmade of unitydumb crewmates just like to wander off from the group which breaks the unity
bruh
Ads
<@&695153281105920070>
so no ads
why
wait is that a Java emulator using JavaScript
bRuH
Why did you the ping community manager
that's not ads
he ads
but that ping is terrible
mhm
@earnest phoenix pinging the whole staff for a single message wow
Whitename™️
pog
whitename
Ads
@earnest phoenix goodjob
-atmods @earnest phoenix applies for CMs aswell
@earnest phoenix
Please do not mention (ping) more than one or two moderators for help, unless there is an emergency.
Here are some examples of emergencies:
- Raids / Multiple members mass spamming.
- Severe disruption of Discord's ToS (NSFW content, etc)
- Anything that requires more than 2 moderators to handle.
this guy is smolbrain
alright I'm leaving the chat before I get demotivated more
fs
so yeah
and i think im smolbrain
there is an npm proj
change it to Malpiszon
thx
if you put the default before the cases in a switch statement will all of them execute the stuff inside the default because it's before the cases?
is someone has a eval code?
discord.js
@earnest phoenix spoonfeeding

Google exists
@earnest phoenix spoonfeeding
@earnest phoenix am not england boi
Search for it
am poland boi
Google exists
@earnest phoenix with all due respect fuck you

poland is pog
@opal plank https://cdn.discordapp.com/attachments/765169956358586379/765215794703368273/265925031131873281_bingoCard.png i made it better
@earnest phoenix with all due respect fuck you
@earnest phoenix The hell did i do
now i need to put numbers on it
@slender thistle ^
make it a square this time jeremy
@earnest phoenix can you seriously stop you're not funny
k
I meant like search for it to learn how it's made
vlotrex
I didn't say copy paste
make it a square this time jeremy
@sudden geyser im basing it off the bingo i'm used to
how can I start a html file on localhost
🆗
@misty sigil eeeey les gooo
🙃
i have the numbers ready
thats an interesting bingo board
Uhh, you use VSC? @solemn leaf
make it have words now so we can play #development bingo again
yeah
@earnest phoenix 99% of people will still copy paste code even if you say don't copy paste code mate just look for how it's done
i can tell that from experience
because i copy paste code
sometimes
{one: {eighty:83, fifty:58, forty:' ', seventy:' ', singles:' ', sixty:69, ten:17, thirty:' ', twenty:28}, two: {…}, three: {…}}
69
thats precisely why i :
a) give Ts snippets
b) tell them the framework
c) give them a general explanation of how to accomplish what they need
whats it called
99.99999% of the time they just want spoonfeeding
liveshare >
thats precisely why i :
a) give Ts snippets
b) tell them the framework
c) give them a general explanation of how to accomplish what they need
@opal plank me and you are the best because we have brainswait tim does too🙂
DISCORD STOP CHANGING MY EMOTICONS TO REAL EMOJIS
proficient too
@earnest phoenix
does fs.existsSync support directories?
@solemn leaf It's called Live HTML Previewer
:)
cant you promisify it?
readline takes only callbacks and i have to take multiple user inputs so i have to put callbacks inside callbacks
cant you promisify it?
@opal plank ...why?
why not? rather than having it use a call back, have it return the value
<script>
const discord = require("discord.js")
const client = new Discord.Client({ "ws": { "intents": ["GUILDS", "GUILD_MESSAGES"] } });
client.on("ready", async () => {
client.user.setActivity("html", { type: 'WATCHING' });
});
client.login()
</script>
require("util").promisify(<function>)``` @earnest phoenix
callback hell is good for me because i don't need to use the variables outside the function
existSync or readline?
@opal plank fs.existSync does it take directories
i think it resolves on any path, so yeah, it should
Has anyone here used Morphia before?
There's no good reason to try to run discord.js directly in a browser.
You can, there's a webpack version of discord.js, but the entire concept is preposterous.
Yeah html is a very good programming language
You wouldn't actaully be using any html at that pint
Yea i mean you can make a bot in that but just for joke sake
just scripts
Ik mate, it was a joke
Imagine running a bot that has thousands of guilds then saying it was made in html
Hilarious
lol
Imagine running a bot that has thousands of guilds then saying it was made in Scratch 
actually, imma top that one up
Imagine running a bot that has thousands of guilds then saying it was made in Js and not Ts
Ultimate shame right here
S(h)ame
why is it showing on the next line on the first question but after that everything is on the same line
nevermind it's repl.it fucking up
lol
scratch is like 12 years old
Repl's resource usage when you run 1 line of code
one question
how do i add a animated emoji
wut
???
to message
ou hvae to get the id of it
that one line be something along these lines then https://paste.awoo.rocks/ifixeremow.js @earnest phoenix
you can do \:emoji: on pc and it will give the thing to you
copy paste that thing in your message and it will show the emoji
no
i dont have nitro lol
non-nitro users can't do that
but bots can
but i have thats link
fetch the guild list with the bot then
bots don't need nitro for anything
that's how NQN exists
@opal plank My god, yandere simulator code leaked

message has payload for mentions
just do parse[]
OR
your lib likely has a method for it
@earnest phoenix https://discord.com/developers/docs/resources/channel#allowed-mentions-object-allowed-mentions-structure
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
still havent figured out how do go by id instead of owner
@commands.command(hidden=True)
@commands.is_owner()
async def edit(self, ctx, user_id: int, total: int, count: int, last_time: int=None):
"""Edit a user's entry in the dict or add a new one"""
if last_time:
self.bot.count[user_id] = {"id": user_id, "total": total, "count": count, "last_time": last_time}
else:
self.bot.count[user_id] = {"id": user_id, "total": total, "count": count}
await ctx.send("Done")
thats the RAW way of doing it, but like i said, your library likely handles that for you with a handy method
code913
in message i have checkmark Hi! with :
but script is
thats the RAW way of doing it, but like i said, your library likely handles that for you with a handy method
@opal plank it's literallymentions: falseinside the object as the second argument forTextChannel.send
iirc
msg.channel.send(:checkmark: Hi!)
pog
so i gave them the RAW method of disabling mentions
it's literally the RAW method for discord.js and 99% of people here use discord.js
@misty sigil i hereby officially give you the right to make the next #development bingo
yeah, but in the offchance they are using another lib, i gave them the base

Making code to get presence intent 
vpn?
huh?
@earnest phoenix fucking explain me why you host your bot on a phone
I always use a vpn, nothing works here if you don't use a vpn god damnit
Vpn hell
@earnest phoenix 
lul
lol
@earnest phoenix fucking explain me why you host your bot on a phone
@earnest phoenix I host on a vps
u are smart voltrex
Code on mobile
thats smart to do
lol
i can barely send a text
Well me going through hell is a common thing i guess
if your phone is 2012+, chances are its capable of running a bot just fine
what abt db on a phone
what app are you using?
bc my bot uses postgresql
unless you doing some retarded shit like me and getting thousands of request per second
Me? @vernal rivet
i mean
who else is programming on mobile
my bot is in 50 guilds
prob be just fine
to bad i cant fucking acess my bot acct

yea

the acct that has my bot
Self bot?
no
yes
breaking the trust with your users
selfbots are against tos
We know
no the acct that has my bot
a bot is a bot, period, they arent subscribing to your bot so you can spy on them




english is an actual esolang