#development

1 messages ยท Page 798 of 1

dense drift
#

Yeah

#

This all is super tricky

quartz kindle
#

since we're at it

#

check sudo iptables -L

dense drift
#
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
#

sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 5000 -j REDIRECT --to-port 5000 I just ran that... I don't know if it'll help

quartz kindle
#

that wont do anything on its own

#

try this iptables -I INPUT -p tcp -m tcp --dport 5000 -j ACCEPT

#

that should allow port 5000 in iptables

dense drift
#

Okie Dokie

quartz kindle
#

although it should be already allowed by default

topaz fjord
#

make sure to allow ssh

dense drift
#

How would you do that?

topaz fjord
#

allow port 22

quartz kindle
#

its already allowed, else you wouldnt even be able to connect or use your terminal

dense drift
#

That's what I thought

#

I'm connecting via ssh

topaz fjord
#

I was just making sure since I fucked it up once

quartz kindle
#

i did too

#

lul

dense drift
#

Fair enough ๐Ÿ˜›

topaz fjord
#

I changed my ssh port and ufw/iptables was having none of it

#

I had to vnc and change it

dense drift
#

OOOOOOOOO

#

I DID IT

#

yayayaya

quartz kindle
#

i tried blocking some weird ip addresses in google compute engine, turns out those were required for some reason and broke all connections

topaz fjord
#

lmao

quartz kindle
#

i had to reset it from the dashboard

topaz fjord
#

I was about to reset mine

#

but then I realized that for GG that the vnc ip is completely different than the vps ip

#

so ufw wouldn't block it and shit

quartz kindle
#

nice

unique glade
#

How do I change the channel where the invite is created for discord server list

bitter lark
#

how do i make it so if i say "$help" it shows all commands

#

like i keep trying

#

but i keep messing up

#

btw im using discord.js

earnest phoenix
#

Google it

#

just see the discord.js website

#

there will be an example

bitter lark
#

i tried

#

discord.js

#

i cant find it @earnest phoenix

earnest phoenix
#

Example

const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () => { console.log(Logged in as ${client.user.tag}!); });
client.on('message', msg => { if (msg.content === 'ping') { msg.reply('Pong!'); } });

client.login('token');

bitter lark
#

where would i put my commands

pine bear
#

I think I hit a roadblock, I can't get the bot online.

knotty fiber
#

hello! i made a reaction collector and i'm wondering, is there a way to hmmm... maybe snippet of my code will explain:

var mg = await message.channel.send(feedback);
var mg = await mg.react('๐Ÿ‘');
mg.awaitReactions(filter, { max: 2, time: 60000, errors: ['error'] } )```
#

returns TypeError: mg.awaitReactions is not a function

#

is there a way to react to and collect reactions from the same message?

#

i wanted to make it more convenient for the user

warm minnow
#

how do i use the discord list bot?

earnest phoenix
#

with your hands

quartz kindle
#

@knotty fiber message.react() returns a promise for a messageReaction not a message, and mg is being replaced by it

#

so just remove the second var if you dont need it

#
var mg = await ...send();
await mg.react();
mg.awaitReactions()
knotty fiber
#

oh thanks

#

i tried that but forgot to add await for the .react()

visual sandal
#

Dumb Question: If i was to get banned from this server, would my bot be taken down from the website?

earnest phoenix
#

yes

visual sandal
#

k thx

amber fractal
#

Why would you need to ask that zoomeyes

earnest phoenix
sick cloud
#

how do i pull a no. of items out of an array, ie. items 0 to 19?

trail reef
#

@sick cloud what language?

sick cloud
#

node.js

trail reef
#

Sorry, don't really know that

#

but

#

Perhaps you could make a new array

#

and make a for loop or something to go through the old array and select the items you need

sick cloud
#

it's an array of 58 and i just need to split it into groups of 1-20, 21-40 and 41 to 58

scenic kelp
#

I think array.prototype.splice would work for what you're trying to do

trail reef
#

ahh see

#

some node.js only method

#

of doing things

scenic kelp
#

js in general

trail reef
#

ยฏ_(ใƒ„)_/ยฏ

sick cloud
#

mmkay

#

i'll look up on mdn

#

ty

scenic kelp
#

in theory since splice mutates the list too if you're just looking to make it into groups of 20 you can just run the splice repeatedly

#

splice(0, 20)

sick cloud
#

ah ok

#

i'll try

amber fractal
#

is there a reason why list[-1] would return None when len(list) returns 15 and list has items. (python)

slender thistle
#

last item of the list is None

amber fractal
#

I massively overlooked that possibility lmao

#

thanks

#

that's probably it unless something weird is going on

slender thistle
#
>>> l = [1,2,3, None]
>>> l[-1]
>>> l
[1, 2, 3, None]
>>> print(l[-1])
None
>>> l = [1,2,3, None, 5]
>>> print(l[-1])
5
sick cloud
#

i have a new one here, if i have an object with things like "United States": "US",, can i search for the value and get the key

#

like search US and get United States

#

instead of the other way round

slender thistle
#

get the JSON values and iterate over them ๐Ÿค”

sick cloud
#

how roughly

#

would find work, ie regions.find(obj => obj.Value == 'US').Key

slender thistle
#

I believe so

lavish seal
#

can anyone tell me why when i start the bot im unable to type in the terminal anymore? like if the bot errors out and doesnt start than i can still type but when it does start i cant

#

its an easy fix just terminate the terminal and start a new one but its annoying

hoary elm
#

I'm pretty sure that's just what it does

#

But could be wrong ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

lavish seal
#

oh, ok didnt realize

earnest phoenix
#

alright i'm having a fat issue

#

what is wrong with this bit of code

#

it's only outputting one thing

#

it's getting both bits of date from my JSON

#

but only one of them is being logged to the console

lament meteor
#

your only console logging the nameID?

earnest phoenix
#

Yeah I'm using it as a test point

hoary elm
#

They also have all the other console logs being ignored with //

earnest phoenix
#

to see what's going on

#

It doesn't need to be logged i just have that there so i can monitor one of the values

hoary elm
#

Ahh far enough

earnest phoenix
#

it's only outputting one value for both

hoary elm
#

I didn't notice they were all running the same args that's my bad

earnest phoenix
#

Am I doing the loop wrong?

#

what I'm trying to do

#

is for each entry in the JSON

#

I want it to loop through the code in the for loop

#

But what seems to be happening is

#

it's getting both of them from the JSON

#

making urls for both

#

but it's just using the channel id from the last one

#

twice

hoary elm
#

You could use message.channels.get instead of client

earnest phoenix
#

It's not triggered by a message

hoary elm
#

Defines it under the guild the message is from

#

Other then that I'm not 100% sure why it's doubling the URLs

#

Ahh okay

earnest phoenix
#

The part that updates the channel names works fine

#

I can't figure out though

#

It's getting the urls correctly, parsing the JSON correctly

#

But it uses the value from the second one tice

#

is it like

#

Running the code inside of request twice?

#

It's like it's running the channel update code twice without currentSvr being updated

hoary elm
#

I see what you mean now but I can't see anything in the code that would trigger it to do that unless I'm just blind

earnest phoenix
#

This is the JSON

#

It's fine

hoary elm
#

Lol hypixel nice

#

I still don't see a issue with that but again I could just be blind right now

earnest phoenix
#

I have no clue why it doesn't work

hoary elm
#

Wait for someone else to answer maybe they can help cause I'm just not seeing the issue ๐Ÿ˜‚๐Ÿ˜‚

#

Like I understand what's wrong but I don't see why

earnest phoenix
#

I wish there was a way i could watch the code work

#

Like step into

#

so it's making both requests and parsing the json correctly

#

it's just reusing the channel id for some fuckin reason

#

ok this mught be helpful

#

currentSvr isn't getting updated

#

huh

#

it's updating twice

#

it's almost like running the first part twice

#

and when it gets to request it runs that block of code twice

earnest phoenix
#

tried putting it in a function?

#

The text "start of request" never appears

#

why isn't that part of the code running?

unique glade
#

How do I change the channel where the invite is created for discord server list

hoary elm
#

@unique glade create a channel specific invite

#

On desktop I believe there is a invite button beside the channel name

lavish seal
#

Why is this sending the message but not in an embed?

const { RichEmbed } = require("discord.js");

module.exports = {
    name: "say",
    aliases: ["bc", "broadcast"],
    category: "moderation",
    description: "Says your input via the bot",
    usage: "<input>",
    run: async (client, message, args) => {
        if (message.deletable) message.delete();

        if (args.length < 1) 
            return message.reply("Nothing to say?").then(m => m.delete(5000));
        
        const roleColor = message.guild.me.displayHexColor === "#000000" ? "#ffffff" : message.guild.me.displayHexColor;

        if (args[0].toLowerCase() === "embed") {
            const embed = new RichEmbed()
                .setColor(roleColor)
                .setDescription(args.slice(1).join(" "))
                .setTimestamp()
                .setImage(client.user.displayAvatarURL)
                .setAuthor(message.author.name, message.author.displayAvatarURL)
                .setFooter(client.user.username, client.user.displayAvatarURL)

          return message.channel.send(embed);
        } else {
            message.channel.send(args.join(" ")); 
        }
    } 

}
hoary elm
#

@lavish seal try js message.channel.send(embed);

#

Instead of RichEmbed

lavish seal
#

It was embed before and still did that

#

Forgot to revert it

#

Before sending this xD

hoary elm
#

Hmm

lavish seal
#

It's got me Uber confused

hoary elm
#

What's the else for after the embed

#

Is that like a say command?

lavish seal
#

It is a say command

hoary elm
#

Thought so and if they don't specify embed you want it to send it as a normal message

lavish seal
#

It's honestly no big deal, it does what it's supposed to but wanted to know why it has no embed

hoary elm
#

If you don't specify that you want to embed it does it send the other message properly? @lavish seal

lavish seal
hoary elm
#

Basically what I'm trying to figure out is how you have the command set like is it

>say embed for example

#

Or >sayembed

#

Obviously that prefix is just an example

#

How do you specify embed is what I'm asking is there a space after say or no

#

If there is a space then it's args[1] not 0

#

If that even makes sense to you lol

Basically if your command is s!say embed then the "embed" would be args[1]

#

s!say is args[0]

lavish seal
#

It does a little bit, I tried changing it to a 1 from earlier but lemme try one more time to be sure

hoary elm
#

Alright let me know what it does if you do that

lavish seal
#

It doesn't change anything, now it just take two words instead of one to send so instead of

s!say Hello

It's

s!say Hello Friend

To actually work

#

But no embed

hoary elm
#

Hmm that's odd

kindred wadi
#

HTML & Markdown allowed, minimum 300 characters Huh. i need this code

blissful rain
#

Hey anybody can help me
Trying to get the bot to post when i'm live but set it up on dashboard but not working

kindred wadi
#

@blissful rain u need dashboard code?

slender thistle
#

Trying to get the bot to post when i'm live

hoary elm
#

So what you can do is do

if(args[0].toLowerCase().includes(" embed")) {

//EMBED CODE HERE

} else {
if (!args[0].toLowerCase().includes(" embed")) {
// REST OF CODE HERE
      }
   } 
}``` @lavish seal
#

Let me know how that works?

There is a space in the " embed"

blissful rain
#

Im trying to get it to post when im live on twitch in my channel

hoary elm
#

@blissful rain what language?

blissful rain
#

English

hoary elm
#

๐Ÿคฆ๐Ÿปโ€โ™‚๏ธ

#

Ect

#

Coding Language

blissful rain
#

im using streamcord

#

That's java script right

hoary elm
#

.... The streamcord bot? I'm pretty sure is Python

blissful rain
#

oh ok

#

Still it told me to come here for help

hoary elm
#

It told you to come here? Where

#

This isn't a support server

blissful rain
#

wiered

modest maple
#

wrong server

#

you need to click the "join support server" button not "join discord"

hoary elm
#

Lol

lavish seal
hoary elm
#

No don't remove it

lavish seal
#
if (!args[0].toLowerCase().includes(" embed")) {
#

right?

#

oh

hoary elm
#

Just add ^^ that above it

lavish seal
#

gotcha

#

that actually makes more sense

hoary elm
#

And may need another }

#

At the end

lavish seal
#

shoot

#

lemme remove rich

hoary elm
#

Yeah that might work it might error that there is to many closing curly brackets or whatever they are called

#

Let me know

lavish seal
#

Still results in the exact same, message with no embed

#

No errors or anything

hoary elm
#

That's weired it's completely ignoring the embed part

#

Ahh the first one put a space

#

" embed"

#

Without the space it expects no space

#

So it's awaiting s!sayembed instead of s!say embed

lavish seal
#

Hmm Hang un

hoary elm
#

If that doesn't work then I'm honestly lost

#

And the answer is probably right infront of our faces lol

#

But let me know if it changes anything ๐Ÿคž

#

@lavish seal I have one more suggestion if that doesn't work

#

That actually usually helps for me with commands that are set up like this

lavish seal
#

Alright that was it.... You said there was a space earlier I din see it tho

#

xD

hoary elm
#

Lol

#

It worked?

lavish seal
#

Thank you

#

Yes

hoary elm
#

Awesome ๐Ÿ˜

lavish seal
#

Although with the avatar thing it was wonky looking

#

Now I sleep

#

Ah actually

hoary elm
#

Although with the avatar thing it was wonky looking
@lavish seal try js message.author.AvatatURL

lavish seal
#

I also didn't realize you had to literally say s!say embed hello

hoary elm
#

Instead of displayAvatarURL

#

Yeah

#

You have to specify that.... (Sometimes)

#

Coding can be tricky like that sometimes

sick apex
#

please someone know html and js ๐Ÿ˜„
I need help I want to create a txt file with html and js

#

becouse I creating site and I want to read it file later so I want to write it 1 information

quartz kindle
#

i didnt understand anything you said

earnest phoenix
#

html is a markup language

#

you can't do anything except make fancy shapes

quartz kindle
#

like he'd understand what that means

maiden sentinel
#

.

sick apex
#

Please how can I edit html code with node.js or php ?

quartz kindle
#

you are still not making sense

#

what are you trying to do?

sick apex
#

i create form I get to it link and I want to that link get to video ๐Ÿ˜„

quartz kindle
#

so you already have a website?

#

you already have html files that work?

sick apex
#

yes

#

but

quiet zinc
quartz kindle
sick apex
#

I get link out of form with js but I dont know how can I get that link to a video

#

into

quartz kindle
#

@sick apex i dont understand what you mean, show some code examples

quiet zinc
#

@quartz kindle And then ุŸ

quartz kindle
#

then change the long description

tight plinth
#

U can use HTML

#

and CSS

#

and Markdown

quiet zinc
#

where is

tight plinth
#

in long description

quiet zinc
#

OK

quartz kindle
#

write there, in the black part

sick apex
#

<script>
const link = that link of wideo what I send with form
</script>
<video controls="" autoplay="" name="media"><source src="that link" type="video/mp4"></video>

#

this thik

#

I want to get ${link} to a video link ๐Ÿ˜„

#

src in <source>

quiet zinc
#

The robot picture does not show why

sick apex
#

send bot link

quiet zinc
sick apex
#

link to that img on top.gg web servers ๐Ÿ˜„

#

it don't exist ๐Ÿคฃ

#

ups is site of discordapp

#

๐Ÿ˜„

quiet zinc
#

Can I exchange it?ุŸ

quartz kindle
#

@sick apex you need to use javascript to set the src attribute

sick apex
#

so const = src ?

quartz kindle
#
<script>
  document.querySelector("video").setAttribute("src",link)
</script>```
sick apex
#

em thank ๐Ÿ˜„

#

it works thanks !!!!

#

๐Ÿ˜‚

vagrant tree
#

Does everyone here use sql to keep user data and analytics? I really dislike sql and want to know if anyone is using something else?

quartz kindle
#

many people use mongo

#

some people use redis

vagrant tree
#

For both analytics and user info?

quartz kindle
#

easier to use the same thing for both, than to keep two separate database servers

#

unless your project deals with millions of transactions per minute, there should be no need to optimize your infrastructure that much

vagrant tree
#

I havent used either before is there any recommendations? Im not storing alot of data. Mostly for an analytics

quartz kindle
#

probably anything you can throw at it will do the job

#

i personally use sqlite for my api

#

i have a table that logs timestamps, ip and url, user id

#

in mongodb you can probably use a document, and store items in it, each containing a timestamp and the data

#

there are some databases who are specialized for "time series", which is storing data over time, usually used for analytics

#

but those are usually meant for higher scales

#

where all optimizations matter

#

at a small scale, you can use whatever you want, as long as you use it correctly

vagrant tree
#

Thank you

wet iron
#

hm

#

still not approved

earnest phoenix
#

a lewd!

wet iron
#

lmao

wheat jolt
#

I wanna make an unban all command in djs.

#

But before

#

Are there limits?

#

like 20 bans per hour or something like this?

earnest phoenix
#

can't you change the background of page that shows your bot?

earnest phoenix
#

of course you can

#

Is there any generic reasons as to why messsage.member would be undefined in this case if (!message.member.guild.me.hasPermission('SEND_MESSAGES')) return;, discordjs of course lol.

#

the command was executed in a dm

#

That's what I was kind of suspecting, I'll look into it a bit more later

tight plinth
#

dont want to type every letter

#

(dont mind me for french name, I have to do it for class)

earnest phoenix
#

a command handler (usually) should:
ignore dms
ignore other bots
ignore prefixes that don't belong to it
and avoid sending unknkwn command messages

it's the best way to keep your commands error free

delicate zephyr
#

@tight plinth You could always use a for loop

#

actually

#

no

#

you couldnt

tight plinth
#

yes I cant

delicate zephyr
#

why are you doing that though?

tight plinth
#

I need to do this for school

#

count how many times a character is in a text to decode it

#

Al Kindi

delicate zephyr
#

thats actually

#

uh

tight plinth
#

wait a sec

delicate zephyr
#

you could just loop through each character

#

and do

#
const counts = {}
for (letter in string) {
  if(!counts[letter]) counts[letter] = 1
  else counts[letter]++
}```
#

not even sure that'd work

#

not that it should

tight plinth
#

hmmm

delicate zephyr
#

but thats how I would think about it

#

since you can iterate by character of a string

#

@tight plinth what lang?

tight plinth
#

python :/

slender thistle
#

Wait what

#

str.count(char) works

earnest phoenix
wheat jolt
#

I wanna make an unban all command in djs.
But before
Are there limits?
like 20 bans per hour or something like this?

tight plinth
#

no i dont think

slender thistle
#

I'd suggest 1.5s delay between the requests

tight plinth
#

@earnest phoenix ur mysql server is not correctly configured

delicate zephyr
#

@slender thistle he needs to loop through every character and store the amount

#

thats why

#

I was saying

#

just iterate through every character

#

and store it in an object

slender thistle
#

Oh it's for all characters in the text

delicate zephyr
#

yea

slender thistle
#

dictionary with amount pog

delicate zephyr
#

indeed

#

Python is fun for that type of stuff ig

slender thistle
#

In a way

delicate zephyr
#

I just got so annoyed with the Process halting with discord bots

slender thistle
#

High-level languages are convenient

delicate zephyr
#

And threading can be a bitch

earnest phoenix
#

@tight plinth what am I missing?

delicate zephyr
#

A MySQL server

#

by the looks of it

tight plinth
slender thistle
#

But

#

but...

#

This hurts

tight plinth
#

and now I'm still fucked, idk what to do

#

oh

slender thistle
#

Create a dict instance
Iterate over the string
if character not in dict, add it and set its value to 1
if yes, get the key and value for that char and increment by 1

earnest phoenix
#

@delicate zephyr I did set it up correctly... I followed a tutorial

blissful scaffold
#

And now someone will write an รฉ and break Lumap's code ๐Ÿ˜›

earnest phoenix
#

can it be solved by running a command on every server where you can create an invitation link?

tight plinth
#

@blissful scaffold hopefully teachers says "If you see accents in texts (like รฉ), destroy them"

slender thistle
#

.replace anything that isn't Latin

grave jacinth
#

const Discord = require('discord.js');

#

Error: Cannot find module 'discord.js'

#

help

summer torrent
#

install the package @grave jacinth

grave jacinth
#

already installed

#

"discord.js": "^11.5.1",

amber fractal
#

just because it's in package.json doesn't mean it's installed

#

All that means is that it depends on it

#

npm i installs all dependencies in package.json I believe

grave jacinth
#

it didnt work

#

oh

#

its works

#

thanks @amber fractal

amber fractal
#

yep

tight plinth
#

with python I want to append 2 things at once in a list. Can I do that?

#

like append a number and a letter

mossy vine
#

do append twice

tight plinth
#

wait

#

n o

mossy vine
#

why not

tight plinth
#

Python Dictionaries

#

better

broken jay
#

Use list.extend([itm1, itm2])

wheat jolt
#

how I can get the index of an object from a collection?

#

d.js

mossy vine
#

a collection is not an array

#

there are no indexes

#

what do you want to do

wheat jolt
#

ugh

#

then nevermind

#

I was trying to test something

quartz kindle
#

the index would be the key

#

for example, an id

grizzled raven
#

or just turn it to an array and get the index then

winter shell
#

How to use lavalink

#

I tried to use

#

but failed

summer torrent
#

read the docs

vestal cosmos
#

today, if you send a message with <@user-id>, Discord will present this message transforming this in a user mention, there's any syntax to do this without the mention? just transforming the user id in the username?

mossy vine
#

if you want to send for example @vestal cosmos without triggering the mention you can escape @ with a backslash <\@105770695631319040> (<@105770695631319040>)

vestal cosmos
#

I think that I didn't express well. I don't want to send the "fragment" <@user-id> in the message.

For example:

@vestal cosmos ---> @vestal cosmos
???? ---> samuelsimoes

grave jacinth
#

module.exports = member => { let username = member.user.username; member.guild.defaultChannel.send('gel,gel aslan gel'+username+''); }; wellcome code is not working

#

no error

earnest phoenix
#

Does that every time I try and load my bot thatโ€™s coded in discord.js

summer torrent
#

@grave jacinth what is your djs version

mossy vine
#

defaultChannel is deprecated

grave jacinth
#

"discord.js": "^11.5.1"

summer torrent
#

^

vestal cosmos
#

@grave jacinth I send this message through the REST API so I will need to do an extra request to get the username, which isn't a problem, I just wanted to know if there's any easier syntax to do this like the mention syntax

summer torrent
earnest phoenix
#

how to get all guild invite link Discord.js

summer torrent
#

what

#

all of the invite links?

earnest phoenix
#

yes

summer torrent
grave jacinth
#

i dont understand

summer torrent
vestal cosmos
#

@grave jacinth my problem is because my bot sends this message.

as you can see, it does 10 mentions that can be annoying to certain members. so I want to avoid these mentions just showing the username without the mention. to this bot message I only have the discord user ids, if I want to know the username of this players I will need to do an API request to fetch the usernames, which as I said isn't a big problem, but if I can do this without this extra request, would be interesting

amber fractal
#

get the user then get their username

#

idk what lib you use

#

and most times they'll probably be in cache so you wont need to actually do an api call

vestal cosmos
#

got it, @amber fractal

so I will to the path to the extra request

#

yeah, I will need do a cache logic

#

anyway, thank you people!

copper cradle
#

@twilit rapids hey can you help this hoister/dotposter with -dotpost

twilit rapids
#

-dotpost @simple drum

gilded plankBOT
#

@simple drum

Please do not post dots to clear your messages/get attention. It adds absolutely nothing to the conversation and just causes spam If you need to get attention, then say hello everyone. If you need to clear your messages, then press the Esc key. If you do not follow these instructions you will be muted.

simple drum
#

ok i deleted my message sorry@twilit rapids

quartz kindle
#

what library/language?

grave jacinth
#

const reqEvent = (event) => require(../events/${event}); module.exports = client => { client.on('ready', () => reqEvent('ready')(client)); client.on('message', reqEvent('message')); client.on('guildMemberAdd', reqEvent('guildMemberAdd')); client.on('guildMemberRemove', reqEvent('guildMemberRemove')); };

#

this is true?

#

eventLoader

summer torrent
grave jacinth
#

not error

#

but not send message anyone attend my sv

#

ffffff

quartz kindle
#

you probably want ./ not ../

#

../ is for previous folder, not current folder

#

unless you have your events folder outside of your bot folder / main file folder, or you're calling that file from a different folder

rough geyser
#

Can i ask something about Mee6?

#

@bitter sundial

slender thistle
tight plinth
#

Wrong server

hushed berry
#

@vestal cosmos bit late but you could also just put it in an embed as mentions wont ping a user if theyre inside an embed

vestal cosmos
#

ow, nice to know this

#

the embed could help in this case

#

thank you!

tight heath
#

@summer torrent that's a very cool domain

wide ridge
#

I'm about to try out Contabo for VPS hosting, does anyone here have their bot in over 50k servers? Any suggestions on better VPS hosting?

tight heath
#

contabo networking and ram speeds have been a bummer

#

but otherwise

#

ยฏ_(ใƒ„)_/ยฏ

#

also I wish I knew who owned that domain

#

๐Ÿ˜ข

modest maple
#

@wide ridge Not at 50k servers but Run a large ish site on it using their Dedi and VPS

#

over all pretty decent havent had any issues

#

ik @twilit rapids runs Chip which has 20k on contabo

wide ridge
#

hmmm...why do you say ram speeds are a bummer @tight heath

#

I'm thinking of going for the 8GB ram option for now, I hope the ping is fine with that too?

modest maple
#

unless ur bot is Massive you shouldnt run into an issue

tight heath
#

I've tried benchmarking it and the speeds were almost on level with my NVMe lol

#

as in

#

the RAM r/w

#

I doubt you'd notice anything with a bot

twilit rapids
#

I'm not noticing anything that the ram speeds are low

late hill
quartz kindle
#

ram operating at 2gbps? wtf

#

actually, it makes sense

#

if they're using nvme's as ram, putting all their kvm instances in swap memory

#

that would also explain their cheap prices

#

and their cpu cores are shared afaik

grave jacinth
#

client.on('guildMemberAdd', member => { const channel = member.guild.channels.find('name', 'gelen-giden'); const reqEvent = (event) => require(../events/${event}`);

module.exports = client => {
client.on('ready', () => reqEvent('ready')(client));
client.on('message', reqEvent('message'));
client.on('guildMemberAdd', reqEvent('guildMemberAdd'));
client.on('guildMemberRemove', reqEvent('guildMemberRemove'));
};` why its didnt working

#

?

grizzled raven
#

what

#

context

quartz kindle
#

show your main file

#

where is the client function being exported to?

grave jacinth
#

module.exports = member => { let username = member.user.username; member.guild.defaultChannel.send('gel,gel aslan gel'+username+''); };

#

glitch

quartz kindle
#

need more information

tight plinth
#

@late hill both in the same vps?

grave jacinth
#

unexpected token

hoary elm
#

@grave jacinth the path to the events folder should be in quotes

#

'eventpathHere'

#

As far as I know anyways I mean it might work like that never really took a chance at trying it

late hill
#

yes

quartz kindle
#

@hoary elm it is in quotes

#

else it wouldnt break discord's quoting lol

hoary elm
#

@quartz kindle good point actually I don't know why I didn't think of that ๐Ÿคฆ๐Ÿปโ€โ™‚๏ธ my bad

#

Didn't even clue in that he tried to use it and discord said nope

honest perch
#

using discord.js

hoary elm
#

@honest perch can you show the line it's erroring for in the JSON file

#

DONT POST TOKEN

honest perch
hoary elm
#

Oh the watch.json

honest perch
#

those are my json files

#

i do have the latest version of it backed up on github so i can just reset it

hoary elm
#

Do you know which JSON it is that it's erroring on?

honest perch
#

nope

hoary elm
#

Which one were you editing before the error

honest perch
#

just the watch

#

i took the 0 off and added it back on to reset it

#

refresh it*

hoary elm
#

Oh high ping

#

Try to ping again in a minute or two glitch is known for high ping on start up

honest perch
#

yes, everything works just very slow

#

ok, will try

amber fractal
#

it will tell you which one errors

hoary elm
#

Or you could do that ^^ I forgot about that ๐Ÿคฆ๐Ÿปโ€โ™‚๏ธ

vagrant tree
#

hi, im trying to log commands entered and wanted to know the best way to handle date-times (in python), is there any recommendations as to how i should store the date time?

hoary elm
#

@amber fractal but it is working now just really high ping

amber fractal
#

then ๐Ÿ‘

hoary elm
#

Yeah I told him to just give it a minute glitch usually has high ping on start up

#

Idk why ๐Ÿคท๐Ÿปโ€โ™‚๏ธ but

quartz kindle
#

@vagrant tree dates should always be stored as timestamps

#

unless you need to index them by name of month, day of the week, year, etc

#

and even then it would be better off as an addition, not a replacement for the timestamp, or simply calculate timestamps for those before getting the values from the db

honest perch
#

seems like glitch is having issues

prime cliff
#

Probably all the Discord bots running it are killing the service so good

honest perch
#

but my test bot is running fine

hoary elm
#

@honest perch high ping could also be due to Outdated Modules causing poor performance

honest perch
#

made a new project in glitch and imported my backup from github, seems to work fine now so maybe just that one server

#

any way thanks again for everyones help

vagrant tree
#

@quartz kindle you mean as so:```py

import time
time.time()
1582749915.201843

modest maple
#

what r u trying todo

vagrant tree
#

i want to record events so that i can do some data mining/analytics. i want to record the date and time so i can see when events happened and measure against different times etc

modest maple
#

use datetime

vagrant tree
#
>>> from datetime import datetime
>>> datetime.now()
datetime.datetime(2020, 2, 26, 22, 41, 18, 969048)```
modest maple
#

that is

#

one way ig

#

that doesnt print datetime.datetime(2020, 2, 26, 22, 41, 18, 969048) tho

vagrant tree
#

i cant really save that in my db

modest maple
#

i mean you can

#

you str() the datetime object it returns the stamp

#

then use strptime i think it is to load it back to a datetime object

vagrant tree
#
>>> d = datetime.now()
>>> d
datetime.datetime(2020, 2, 26, 22, 53, 29, 902060)
>>> print(d) 
2020-02-26 22:53:29.902060
modest maple
#

yh

static trench
#

How can i have a bot google a companyโ€™s stock price and than message it? On discord.py

modest maple
#

ig use some sort of API and AIOhttp

quartz kindle
#

@vagrant tree that will make it easier to search for specific dates or times by string or by humans, but it will make it harder to sort, filter or use math on the dates, unless your database supports datetime functions with that format (it will also use a tiny bit more disk/memory/cpu)

modest maple
#

you can convert the date time object to seconds total

#

save that

#

then build back into object (if you want it readable or compare to another object time)

vagrant tree
#

is there a standard way of doing this?

modest maple
#

depends on ur use case

#

most people use datetime because of the utility to manipulate the times and do comparisons with standard operators

vagrant tree
#

i guess time.time()

slender thistle
#

.timestamp all the datetime objects

modest maple
#

^^

#

datetime > time module

#

in just sheer utility

quartz kindle
#

he wants to build a time-series database, so it mostly depends on how the potentially thousands of entries want to be accessed

#

timestamps are more efficient but less readable

vagrant tree
#

at this point im just recording the timestamp i will use the data externally to my bot

modest maple
#

use the datetime module in general

unborn steeple
#
const { RichEmbed } = require("discord.js");
const db = require("quick.db");

module.exports = {
	name: "buy",
	aliases: ["purchase"],
	run: async (bot, message, args) => {
		
		let bal = await db.fetch(`money_${message.author.id}`);
		
		if (!args[0]) return message.reply("Try `p!shop` to browse items then use `p!buy <item_id>` to buy it.");
		
		if (args[0] === "1") {
      
			if (bal < 1000) {
				return message.reply("You dont have enough to buy this item.")
			}
			
			return message.reply("Are you sure you would like to purchase this item?")
			.then(function (message) {
			message.react('๐Ÿ‘').then(() => message.react('๐Ÿ‘Ž'));

      const filter = (reaction, user) => {
	    return ['๐Ÿ‘', '๐Ÿ‘Ž'].includes(reaction.emoji.name) && user.id === message.author.id;
      };
        
			message.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] })
	.then(collected => {
		const reaction = collected.first();

		if (reaction.emoji.name === '๐Ÿ‘') {
			message.reply('you reacted with a thumbs up.');
		} else {
			message.reply('you reacted with a thumbs down.');
		}
	})
	.catch(collected => {
		message.reply('you reacted with neither a thumbs up, nor a thumbs down.');
	});
      })
		}
	}
}

Is there a way to make it get the authors reaction instead of the bots?

#

ive been trying for hours

#

it always responds when the bot reacts I want it to respond when the message author reacts.

earnest phoenix
#

just... make your filter ignore itself or bots in general?

unborn steeple
#

@earnest phoenix how?

hoary elm
#

@unborn steeple ```js
if (message.author.bot) return;

earnest phoenix
#

no

hoary elm
#

Was gonna send that before you asked how was just referencing some code I have for a starboard

#

That's what I use

#

World fine

#

Works*

earnest phoenix
#

don't spoonfeed code and don't spoonfeed wrong code

#

@unborn steeple look at your filter code

#

i don't get what you mean by 'how' lol

#

&& !message.author.bot @unborn steeple

#

don't spoonfeed

#

yes

#

theres not a rule

#

do you really think so

crimson vapor
#

can you edit the code block and add js to the top?

unborn steeple
#

@earnest phoenix the rule says do not spoonfeed or attack beginners as in beginners people who aint a bot dev role yet.

#

tbh im tired and I didnt realize that was the problem eventually i would have fogured it out

earnest phoenix
#

does it say that beginners are people who don't have bot dev? no? dont make it up then

unborn steeple
#

didnt

#

Ive always gave code to other man u need to chill

quartz kindle
#

@unborn steeple you are replacing the original message with the message your bot sends, thus the author will be the bot

unborn steeple
#

@quartz kindle how would i fix that?

quartz kindle
grizzled raven
#

change message to msg or somethin

#

the second message*

unborn steeple
#

@grizzled raven i dont think that will work

#

@quartz kindle will it?

quartz kindle
#

it will

hoary elm
#

Yes it's defining it as two seperate message (in a way) events/callbacks whatever you want to call it

grizzled raven
quartz kindle
#

as long as you change all references to the correct message

grizzled raven
#

love how you deny me but ask tim to make sure

slender thistle
#

Tim's pfp gives confidence to the new devs

quartz kindle
#

ie: js run: (message) => { dosomething().then(newmessage => { newmessage.doSomething(); newmessage.author !== message.author }) }

unborn steeple
#

@quartz kindle im trying to get the reactions to the bots response instead of mine too

quartz kindle
#

just make sure you are doing things to the correct message

#

ie: newmessage.react()

#

you should know which message object is the command, and which message object is the bot's response

#

also, since you're already using an async function, you could as well switch to await instead of .then()

#

would make your code easier to understand

grizzled raven
#

nah its just cause this is the channel where tim is the most active in

#

๐Ÿ˜Ž

quartz kindle
#

lul

pine bear
#

I made a config.json file but there's a problem, it says it's expecting a "comma"

{
    "prefix": "c!"
    "token": "Inserted-token"
}

I don't know to fix it because I tried but it just caused more problems.

static trench
#

Hey guys! I am Asking a very dumb question. I want to code a bot in pycharm. When i run pip install discord.py in terminal (Iโ€™m on Mac) it says there is no command for that! Please help me. Every youtube video i find is on windows!

#

Please ping me, i am going offline

earnest phoenix
#

@pine bear at the end of every line you need to add a comma, except the last item

#

Kind of like how a list would be formed object 1, object 2

#

that sort of thing

pine bear
#

Thank you.

hushed berry
#

hello can someon spoonfeed me please

topaz fjord
#

yes

summer torrent
#

@hushed berry yes

pine bear
#

It says symtax error, but I'm like at one of those times when writing JavaScript when I'm so certain the code is correct but it isn't.
here is the error message on the terminal.

client.once('ready', => {
                     ^^

SyntaxError: Unexpected token '=>'

here was the code I used.

const Discord = require('discord.js');
const { prefix, token } = ('/config.json');
const client = Discord.Client();

client.once('ready', () => {
    console.log('Bot is now online!');
})

client.login(token);

please help, I've tried and read everything. and I've been stuck on this step for hours.

mystic violet
quartz kindle
#

@pine bear the code that the error shows is different than the code you showed, make sure the file is saved

indigo geyser
quartz kindle
#

^not the problem, javascript does not enforce semicolons

indigo geyser
#

kk

pine bear
#

Oh, save the file eh? I'm on it

quartz kindle
#

@mystic violet not all members are cached by default

#

you hit a guild whose owner is not cached

mystic violet
#

OH

#

okay

#

I get it now lmao forgot

#

Thank you

static trench
#

Hey guys! I am Asking a very dumb question. I want to code a bot in pycharm. When i run pip install discord.py in terminal (Iโ€™m on Mac) it says there is no command for that! Please help me. Every youtube video i find is on windows!

earnest phoenix
#

@static trench file > settings > project interpreter

#

click the little + icon

#

and grab the packages you need

static trench
#

On what?

#

mom

#

@earnest phoenix

earnest phoenix
#

2 secs i'll send screenshots

static trench
#

Terminal or pycjarm

earnest phoenix
#

pycharm

static trench
#

Ok

#

What r the screenshots?

earnest phoenix
#

huh

#

?

static trench
earnest phoenix
#

yes.

#

pycharm lets you pick any package pip can

static trench
#

Ok

#

So that what do I do?

earnest phoenix
#

gimme 2 secs

static trench
#

Kk

earnest phoenix
#

im loading pycharm

static trench
#

Ok

earnest phoenix
static trench
#

Ok...

earnest phoenix
static trench
#

Do I need to have downloaded python?

#

Or anaconda?

earnest phoenix
#

pycharm should have already, IIRC

#

and nah

static trench
#

Ok

earnest phoenix
#

you can just use venv

#

which is basically sandboxed python

static trench
#

Ok

#

So, I go to settings, project interpreter, and an pick python what version?

earnest phoenix
#

do you have a project set up already?

static trench
#

Let me check

#

Iโ€™m opening py charm

#

It crashed

earnest phoenix
#

ew

#

xD

static trench
#

Ya ๐Ÿ˜ฆ

#

So settings, and than what?

#

@earnest phoenix

earnest phoenix
#

eeeee

#

i didnt leave

#

project interpretwer

static trench
#

Sry

earnest phoenix
#

as i said above

static trench
#

Ok

#

Ok

earnest phoenix
#

also, with pycharm, if you try to include a module you dont have installed, it'll prompt you to install it

#

as a quick fix

static trench
#

Ok

#

How do I get to settings?

earnest phoenix
#

file. settings.

stable horizon
#

bruh

#

python3 -m pip install -U discord.py

#

no need to go thru pycharm

static trench
#

Doesnโ€™t work

#

I tried

stable horizon
#

according to what you said above

static trench
#

Here is my settings window

stable horizon
#

pip install discord.py is not the same as python3 -m pip install -U discord.py

static trench
#

Let me try

stable horizon
#

if that doesnt work you dont have python installed

static trench
earnest phoenix
#

i mean doing it thru pycharm is just a good method as any

stable horizon
#

๐Ÿšฎ

static trench
#

Ok

earnest phoenix
#

o

#

no

#

dont

#

dont open python first

static trench
#

Rly?

#

Ok

earnest phoenix
#

just type python3 -m etc in a normal terminal

pine bear
#

It says the token was invalid, but I used the client.login(supersecrettoken) and was able to get it online

static trench
#

It worked!!!!

#

What do I do?

earnest phoenix
#

huh

stable horizon
#

well... now you code

static trench
#

Ok. Where?

earnest phoenix
#

wh.

static trench
#

How can I get settings in pycharm?

stable horizon
#

you dont need settings

earnest phoenix
#

not anymore.

static trench
#

Ok

#

It said it failed

earnest phoenix
#

why did it say it failed?

stable horizon
#

what does the error say?

#

inb4 ssl error

static trench
#

It said it didnโ€™t have permissions

earnest phoenix
#

sudo

#

thats a mac thing right

stable horizon
#

dont think so

earnest phoenix
#

ftr

static trench
#

Itโ€™s not

earnest phoenix
#

this is why i said just use pycharm

#

su -?

#

does su - work?

stable horizon
#

try doing python3 -m pip install discord.py --user

static trench
#

@earnest phoenix can u walk me through pycharm?

earnest phoenix
#

try what @stable horizon said first, if that doesnt work, ye

static trench
#

Ok

#

It worked??

earnest phoenix
#

good good

static trench
#

What now?

earnest phoenix
#

now @stable horizon is that global then? since pycharm does use virtual envs?

static trench
#

Where do I code?

earnest phoenix
#

open pycharm, make a new project

static trench
#

Ok

#

Done

earnest phoenix
stable horizon
#

you might have to install it in the venv, if you use one

static trench
#

How do i do that?

earnest phoenix
#

qjeghdr iuj rljsbfgvkl4

static trench
#

Huh?

#

Whats that?

earnest phoenix
#

that was aimed at @stable horizon

static trench
#

Ok

#

I have the new project

#

What do i do now?

stable horizon
#

personally i dont use venvs so i didnt think about it

static trench
earnest phoenix
#

yes

#

but

static trench
#

Ok how?

earnest phoenix
#

ok so

stable horizon
#

i have pycharm set to global interpreter ยฏ_(ใƒ„)_/ยฏ

earnest phoenix
#

ohh

#

i dont xD

#

ok so

static trench
#

Yes?

earnest phoenix
#

make a new file

static trench
#

On pycharm?

earnest phoenix
#

yup

static trench
#

Done

earnest phoenix
#

ok so you can either follow the steps i said above

#

or

#

type import discord in the file

static trench
#

Ok

#

And do i run it?

earnest phoenix
#

hover over the error it gives, and click import discord

#

it'll explain better than i can

static trench
#

Ok

earnest phoenix
#

also this

static trench
#

One sec

#

I hover over it and it goes away when i try to click

earnest phoenix
#

and then use the shortcut it says

static trench
#

I did

#

It goes away

earnest phoenix
#

thats. odd.

#

ok so

static trench
#

I did shift up enter

#

Is that right?

earnest phoenix
#

isnt that alt shift enter

#

i dont use a mac but pretty sure that is alt shift enter

static trench
#

Ok

quartz kindle
#

mac key bindings are a piece of crap

earnest phoenix
#

thats the win shortcut too

static trench
#

IKR

earnest phoenix
#

alt shift enter - first fix, alt enter - open fix menu

static trench
#

Huh?

#

@quartz kindle can you help with this? I am trying to download discord.pu

earnest phoenix
#

just

static trench
#

Discord.pu

#

.py

earnest phoenix
#

hover over the error

#

and hit alt+shift+enter?

static trench
#

Yes

#

Nothing happed

#

Happened*

earnest phoenix
#

look bottom of screen

static trench
#

Got it

earnest phoenix
#

does it say anything is running?

static trench
#

I think

#

It said package installed successfully

earnest phoenix
#

ok

#

then just wait for it to index and everything

static trench
#

Index?

earnest phoenix
#

ye, it finds all the important pieces of a file so autocomplete will work

static trench
#

Ok

earnest phoenix
#

basically searches thru the file, and is like "hey, this class has these functions, etc"

static trench
#

Ok

earnest phoenix
#

so when you trigger autocomplete (ctrl+space, or just any other time( it'll know

static trench
#

How do i run it?

earnest phoenix
#

click run

#

but

#

read this.

static trench
#

O

#

Ok

#

I just put in one of the examples for discord.py and put it into the code w/ my token

earnest phoenix
#

ye

static trench
#

I ran it

#

There was a thousand errors

earnest phoenix
#

wait

#

that probs on the old discord.pyy aksjfdklgfgkb

static trench
#

Ya

#

I now have 1194 lines of code!

earnest phoenix
#

here

static trench
#

I didnt write any of the

earnest phoenix
#

do that

static trench
#

Ok

earnest phoenix
#
import discord

client = discord.Client()

@client.event
async def on_ready():
    print('We have logged in as {0.user}'.format(client))

@client.event
async def on_message(message):
    if message.author == client.user:
        return

    if message.content.startswith('$hello'):
        await message.channel.send('Hello!')

client.run('your token here')
#

in particular that

static trench
#

I did that

earnest phoenix
#

it run?

static trench
#

One sec

#

Is there a โ€œselect all?โ€

earnest phoenix
#

errors?

static trench
#

I have 2200 lines of code

earnest phoenix
#

what

#

ctrl+a = select all?

static trench
#

Yes

#

Still a ton of errors

#

Wait

earnest phoenix
#

use just that code above

static trench
#

I did

#

No token?

earnest phoenix
#

well use your token

#

but

#

i mean you shouldnt have 2000 lines of code

static trench
#

I deleted the,

earnest phoenix
#

hold on

static trench
#

Ok

#

Still doesnโ€™t work

earnest phoenix
#
from discord.ext import commands
import logging
import discord

logging.basicConfig(level=logging.WARN)


def get_prefix(bot, message):
    prefixes = ['%','>']
    if not message.guild:
        return '%'
    return commands.when_mentioned_or(*prefixes)(bot,message)


bot = commands.Bot(command_prefix=get_prefix)

@bot.event
async def on_ready():
    print("Bot ready!")


@bot.event
async def on_message(message: discord.Message):
    if message.author.bot:
        return

    if message.content == "hello":
        await message.channel.send("hi")
    await bot.process_commands(message)


bot.run("token")
#

this is a very minimal bot that SHOULD work

#

just says hi when you say hello

#

oop

static trench
#

Ok

earnest phoenix
#

there

#

had to fix a thing

static trench
#

Ok

pine bear
#

It says error for some reason

(node:2712) UnhandledPromiseRejectionWarning: Error: An invalid token was provided.

When I put the token in the config.json file that happened, it also said this along with the warn code.

(node:2712) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:2712) [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.

here is the code again

const Discord = require('discord.js');
const { prefix, token } = ('./config.json');
const client = new Discord.Client();

client.once('ready', () => {
    console.log('Bot is now online!');
})

client.login(token);
static trench
#

Yes

smoky quartz
#

about when should i start sharding on my bot

static trench
#

@pine bear were trying it in py

#

What is sharding?

earnest phoenix
#

@smoky quartz around 1k guilds, you are forced to at 2.5k

smoky quartz
#

im at 1.3k now

static trench
#

Whats sharding?

smoky quartz
#

and no idea how to do it

static trench
#

@earnest phoenix it didnt work

pine bear
#

No, I'm talking about my bot.

static trench
#

Ok

#

What Is sharding?

smoky quartz
#

basically splitting your bot so it can do more servers

static trench
#

Wow

#

Ok

#

That must take a while

smoky quartz
#

each shard is a given amount of servers

#

idk how long it takes cos idk how to do it

#

but pretty sure its not that hard

earnest phoenix
#

@smoky quartz What language and library

static trench
#

Good luck!

smoky quartz
earnest phoenix
#

D.py handles sharding automatically doesn't it?

smoky quartz
#

idk

#

havent looked into it

#

if it does then thats gonna save me time

earnest phoenix
#

Pretty sure it does.

static trench
#

Dan, what should i do?

earnest phoenix
#

@static trench send errors

static trench
#

Huh?

#

How?

pine bear
#

Umm, ahem.

earnest phoenix
#

Cuz that code is literally a stripped version of my bot startup. And @pine bear id help if I could but I don't do js

static trench
#

Traceback (most recent call last):
File "/Users/Ben/PycharmProjects/untitled/main.py", line 2, in <module>
from discord.ext import commands
File "/Users/Ben/untitled/lib/python3.8/site-packages/discord/init.py", line 23, in <module>
from .client import Client
File "/Users/Ben/untitled/lib/python3.8/site-packages/discord/client.py", line 34, in <module>
import aiohttp
File "/Users/Ben/untitled/lib/python3.8/site-packages/aiohttp/init.py", line 6, in <module>
from .client import BaseConnector as BaseConnector
File "/Users/Ben/untitled/lib/python3.8/site-packages/aiohttp/client.py", line 69, in <module>
from .connector import BaseConnector as BaseConnector
File "/Users/Ben/untitled/lib/python3.8/site-packages/aiohttp/connector.py", line 3, in <module>
client = discord.Client()
AttributeError: partially initialized module 'discord' has no attribute 'Client' (most likely due to a circular import)

Process finished with exit code 1
@earnest phoenix

#

running this code

earnest phoenix
#

Are you only using the last code I sent?

static trench
#

yes

earnest phoenix
#

Well

#

That's a token

static trench
#

i regenerated it

earnest phoenix
#

Oi. Delete that and regen your token

static trench
#

so u cant steel it

#

๐Ÿ™‚

earnest phoenix
#

B e t

#

XD

static trench
#

why doesnt it work?

#

i used all te commands

#

i have discord.pu

earnest phoenix
#

That's... Odd

static trench
#

ik

earnest phoenix
#

Are there any errors in the editor?

static trench
#

only yellow ones

#

no red

earnest phoenix
#

Like what

static trench
#

one sec

#

i will write them alll

smoky quartz
#

turns out d.py does do it auto you just need to change what type of client it is

#

welp thats easier than i thought

static trench
#

they are gone

earnest phoenix
#

@smoky quartz that code should work. Shouldn't it

smoky quartz
#

what one

#

put it in a code block so its easier to read

smoky quartz
#

never played with the logging lib but seems fine to me

earnest phoenix
#

That's a stripped version of my bots startup. And the full code works

smoky quartz
#

btw @static trench delete the message of ur code