#development

1 messages · Page 495 of 1

restive silo
#

just await it before running the command

#

ez

woeful sparrow
#

Hi,I have issue that my bot can't send message of stats cause its too big

#

And the stats are 1 per line

#

Is it possible to split per line?

topaz fjord
#

if your message is over 2k characters i wouldn't

woeful sparrow
#

Dang

topaz fjord
#

bc normal character limit is 2k and embed character limit is 1024

woeful sparrow
#

Oooh

#

Stats use embed

#

Got it

#

But is it possible to split message into 2 messages?

#

Or like,uh

topaz fjord
#

what lib

woeful sparrow
#

C#

topaz fjord
#

idk c# so

woeful sparrow
#

Everything was okay before my bot joined this server xd

#

Too many stats

#

Wait

#

How to check how many chars string contains?

#

Nvm

#

I will do foreach loop until the message fits in

#

Like it will try to cut out every line fast

#

Until the message fits to 1024 char limit

#

Doesnt sound good to performance

#

But only solution

real ocean
#

I mean the worst bit of performance with that would be waiting for the messages to actually send

#

Also don't foreach, use sub strings.

#

@woeful sparrow

junior hornet
#

hi i use discord.js and need to add a sever count that shows up on discordbotlist can someone send or help with the code for it

earnest phoenix
#

what

real ocean
junior hornet
#

can someone send the code for a sever count i use discord.js

real ocean
#

the code is literally on the API docs

junior hornet
#

can you send a link

west raptor
#

. -.

junior hornet
#

oh ok sorry bother thx

real ocean
#

Guess my links aren't good enough 😬

west raptor
#

oof

junior hornet
#

no the link does not work

#

hold on

loud salmon
#

?

west raptor
#

works fine for me

junior hornet
#

see

west raptor
#

🤔

real ocean
#

What country u in

junior hornet
#

america

real ocean
#

oh lol

junior hornet
#

i think i mis spelled that

real ocean
#

Make sure you're not using a VPN/proxy that would break it

junior hornet
#

im not

#

i figuerd i out thank you

night imp
#

@inland latch is there an error?

inland latch
#

yes

west raptor
#

whats the error

#

🤔

inland latch
#

ImportError: cannot import name '_remove_dead_weakref'

#

and when i try to reinstall, dkpg wont let me

#

my bots are still running fine on some cached python until they reboot

#

help

#

@night imp @west raptor got it?

#

i updated it to 3.5.6 and then suddenly, everything is corrupted

#

@night imp you still here?

earnest phoenix
#

hey quick question for someone

#

or anyone

night imp
#

I've never seen that before @inland latch . Maybe you have to reboot? I would try asking on stack overflow they have a lot of python people

#

@earnest phoenix what is it?

#

@inland latch ex uninstall, reboot, install, reboot, Try it

earnest phoenix
#

@night imp am i allowed to invite bots to my server

#

i need to clear my general chat

night imp
#

Yeah of course

earnest phoenix
#

but dont know which one to use

night imp
#

Purgeing can only go back around 15 days iirc

earnest phoenix
#

thats fine by me

night imp
#

If you want to completely clear the chat I would remake the channel

#

Ok

#

There are lots of bots that do that

earnest phoenix
#

which one would you recommend

west raptor
#

14 days*

night imp
#

Off the top of my head I think Dyno has a purge feature

west raptor
#

dyno will do

inland latch
#

@night imp want to go into dms?

night imp
earnest phoenix
#

kk

night imp
#

@inland latch I'm sorry I don't use python primarily and won't be able to help you

earnest phoenix
#

i keep trying to log in with my other discord buuut it wont let me lmao

#

any suggestion

real ocean
#

Private window?

earnest phoenix
#

trying to add this both but it keeps doing it the broswer

#

oo

#

ok ill try

rotund star
#

LF> a bot that tracks how many images a user has posted, leaderboard style (similar to xp but with images)

west raptor
knotty steeple
#

ok?

rotund star
#

no, I want a leaderboard, statistics type bot

#

similar to xp leaderboard but with images instead

west raptor
#

¯_(ツ)_/¯

rotund star
#

or embeds/videos/links

deep inlet
#

How do I make this function not shit?

  _replace (content, find, replace, delimiter = '', findDelimiter = '') {
    if (!Array.isArray(find)) find = [find]
    let result = content
    find.forEach(ref => {
      result = result.split(findDelimiter).reduce((a, e) => a + delimiter + (this._reference[replace][this._reference[ref].indexOf(e)] || e), '')
    })
    return result
  }```
earnest phoenix
#

ok

deep inlet
#

Thanks

#

Really helped

#

I was thinking of reducing on find but

#

Idk

fervent oyster
#

Uhhhh

#

AlekEagle.exe has stopped working

deep inlet
#

:P

native folio
#
async def ban(ctx, member: discord.Member = None):
    author = ctx.message.author
    channel = ctx.message.channel
    if ctx.message.author.server_permissions.ban_members:
        if member is None:
            embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
            embed.add_field(name=":confused: | Error", value="Please specify a user for me to ban!", inline=False)
            embed.set_footer(icon_url="https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Kick Error")
            await client.say(embed=embed)
        else:
            await client.ban(member)
            embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
            embed.add_field(name=":thumbsup: | Banned User:", value=f"{member.mention}", inline=False)
            embed.add_field(name="Banned By:", value=f"{author.mention}", inline=True)
            embed.add_field(name="Banned In:", value=f"{channel.mention}", inline=True)
            embed.set_footer(icon_url="https://https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Banned user")
            await client.say(embed=embed)
    else:
        embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
        embed.add_field(name=":rage: | Error", value="You do not have the right permission. Required Permissions for this is: **Ban Members**", inline=False)
        embed.set_footer(icon_url="https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Ban Error")
        await client.say(embed=embed)
        
deep inlet
#

No syntax highlighting 🤢

native folio
#

any ideas on why i type .ban (user) it dosent do anything?

#

what is syntax highlighting

#

@deep inlet

deep inlet
native folio
#

ok

#

what is wrong if i use this

deep inlet
#

It's gross to look at if you don't use syntax highlighting

native folio
#

idk how to highlight

deep inlet
#
@client.command(pass_context=True)
async def ban(ctx, member: discord.Member = None):
    author = ctx.message.author
    channel = ctx.message.channel
    if ctx.message.author.server_permissions.ban_members:
        if member is None:
            embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
            embed.add_field(name=":confused: | Error", value="Please specify a user for me to ban!", inline=False)
            embed.set_footer(icon_url="https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Kick Error")
            await client.say(embed=embed)
        else:
            await client.ban(member)
            embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
            embed.add_field(name=":thumbsup: | Banned User:", value=f"{member.mention}", inline=False)
            embed.add_field(name="Banned By:", value=f"{author.mention}", inline=True)
            embed.add_field(name="Banned In:", value=f"{channel.mention}", inline=True)
            embed.set_footer(icon_url="https://https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Banned user")
            await client.say(embed=embed)
    else:
        embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
        embed.add_field(name=":rage: | Error", value="You do not have the right permission. Required Permissions for this is: **Ban Members**", inline=False)
        embed.set_footer(icon_url="https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Ban Error")
        await client.say(embed=embed)
        ```
#

Look how much nicer that is

native folio
#

how

deep inlet
native folio
#

wait

#
@client.command(pass_context=True)
async def ban(ctx, member: discord.Member = None):
    author = ctx.message.author
    channel = ctx.message.channel
    if ctx.message.author.server_permissions.ban_members:
        if member is None:
            embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
            embed.add_field(name=":confused: | Error", value="Please specify a user for me to ban!", inline=False)
            embed.set_footer(icon_url="https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Kick Error")
            await client.say(embed=embed)
        else:
            await client.ban(member)
            embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
            embed.add_field(name=":thumbsup: | Banned User:", value=f"{member.mention}", inline=False)
            embed.add_field(name="Banned By:", value=f"{author.mention}", inline=True)
            embed.add_field(name="Banned In:", value=f"{channel.mention}", inline=True)
            embed.set_footer(icon_url="https://https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Banned user")
            await client.say(embed=embed)
    else:
        embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
        embed.add_field(name=":rage: | Error", value="You do not have the right permission. Required Permissions for this is: **Ban Members**", inline=False)
        embed.set_footer(icon_url="https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Ban Error")
        await client.say(embed=embed)
        
#

OH

deep inlet
#
'here' + `is ${some}` + JS```
native folio
#

so can you help me

earnest phoenix
#

idk python

#

but like

#

is ban() a function

foggy delta
#

Anyone here good at Regex and unicode? I need help with removing "weird" symbols but keeping text such as Japanese, Greek, Hindu etc.

Something like this:

Hello!】★ ああああ

I need it to output: Hello! ああああ

deep inlet
#

Hm

#

Are you using JS?

foggy delta
#

Yes

deep inlet
#

I think there's something in JS for this I forgot what

#

Give me a second

#

I can't remember

#

Shoot

foggy delta
#

So close yet so far

rustic axle
#

I could have sworn I have seen a npm package for this before

earnest phoenix
#

clean-special-chars

#

you should try that npm package

foggy delta
#

Give me a second

deep inlet
#

YES

foggy delta
#

Yes?

deep inlet
#

I HATH FOUND

foggy delta
#

Let me test this

#

Nope, still returns weird strings

#

This wouldn't be a problem but it crashes my API when I use these strings :/

deep inlet
#

Did you specify a form?

foggy delta
#

You know

#

That's a great idea

deep inlet
#

XD

rustic axle
#

If omitted or undefined, "NFC" is used.

deep inlet
#

No, don't work

rustic axle
#

prob wouldn't but ya know node can be weird some times

deep inlet
foggy delta
#

Tried all the forms, same thing

#

Let me go try that package

rustic axle
#

No because it changes only accented chars

foggy delta
earnest phoenix
#

yeah

rustic axle
#

the package

earnest phoenix
#

actually don't try it

foggy delta
#

Why does unicode have to be so rough

rustic axle
#

so it would remove Ñ

#

and others

#

meaning languages are insig

foggy delta
#

Hmmm

deep inlet
#

@foggy delta If all fails, you could try a translator module and delete what didn't change

rustic axle
#

Your best option at this point may just be creating a variable with a list of all accepted unicodes you want and screening thru each thing using for loops and indexing each part

#

ie.

foggy delta
#

I thought of doing that @deep inlet , but that's my last hope

deep inlet
#

Problem is

#

It would delete the language you're translating to

#

Sigh

#

I feel your pain

foggy delta
#

To expand on your idea @rustic axle , I could instead create a variable with all the characters I don't want and just str.replace them GWakkOshrug

#

That actually

#

That might work

deep inlet
#

You could create an array in a JSON file with all the whitelisted chars and Regex it

foggy delta
#
/[^【】★]+/gum

My life has come to this now sigh

#

Yes, I think I will do that

rustic axle
#
const unicode = 'yourAcceptedChars';
const str = '【Hello!】★ ああああ';
for (var s = 0; s < str.length; s++){
    for (var u = 0; u < unicode.length; u++) {
        if (str.charAt(s) == unicode.charAt(u)) str.replace(str.charAt(s), "");
    }
}
earnest phoenix
#

regex ftw

foggy delta
#

Tried this, kind of worked

#

Problem is, this is PHP Reg

#

I think I'll settle on @rustic axle way, thanks for the help!

rustic axle
#

@foggy delta use logic inversion on line 5

#
const unicode = 'yourAcceptedChars';
const str = '【Hello!】★ ああああ';
for (var s = 0; s < str.length; s++){
    for (var u = 0; u < unicode.length; u++) {
        if (!str.charAt(s) == unicode.charAt(u)) str.replace(str.charAt(s), "");
    }
}
#

that should be right

#

yw btw

#

😃

foggy delta
#

Alright, I figured out a way to convert PHP Reg to Node, it's a module called XRegExp, this is how I did it:

const xreg = require('xregexp');
    
    let str = '【Hello!】★ ああああ】';
    let regex = new xreg('\\p{Common}', 'g');
    let res = xreg.replace(str, regex, ' ');

    console.log(res); // Hello    ああああ
#

I spent way too long on this

#

What am I doing with my life

native folio
#

how do i write this code into a @client.event?

@client.command(pass_context=True)
async def ban(ctx, member: discord.Member = None):
    author = ctx.message.author
    channel = ctx.message.channel
    if ctx.message.author.server_permissions.ban_members:
        if member is None:
            embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
            embed.add_field(name=":confused: | Error", value="Please specify a user for me to ban!", inline=False)
            embed.set_footer(icon_url="https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Kick Error")
            await client.say(embed=embed)
        else:
            await client.ban(member)
            embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
            embed.add_field(name=":thumbsup: | Banned User:", value=f"{member.mention}", inline=False)
            embed.add_field(name="Banned By:", value=f"{author.mention}", inline=True)
            embed.add_field(name="Banned In:", value=f"{channel.mention}", inline=True)
            embed.set_footer(icon_url="https://https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Banned user")
            await client.say(embed=embed)
    else:
        embed = discord.Embed(color=0xfffdfd, timestamp=datetime.datetime.utcnow())
        embed.add_field(name=":rage: | Error", value="You do not have the right permission. Required Permissions for this is: **Ban Members**", inline=False)
        embed.set_footer(icon_url="https://cdn.discordapp.com/attachments/486514295971250176/495786188582551587/Mars.jpg", text="Mars Ban Error")
        await client.say(embed=embed)```
#

because when i use this in client command it dosent work

trim saddle
#

@native folio wdym event

native folio
#

@client.event

#

such as

trim saddle
#

you can't convert a command to an event

native folio
#
@client.event
async def on_message(message):
    if message.content.startswith('.coinflip'):
        randomlist = ["The coin landed on heads!","The coin landed on tails!"]
        await client.send_message(message.channel,(random.choice(randomlist)))```
#

i mean retype the code into a event because when i use a command it dosent work

trim saddle
#

i advise against turning it into an on message event.

native folio
#

it dosent work in a command

#

for me atleast

trim saddle
#

what exactly is the error

native folio
#

it dosent work

#

it runs fine

#

but when i test the .ban command nothing happens

trim saddle
#

so it returns silently

native folio
#

yes

#

it dosent say any error when running the code but when testing it in discord theres nothing there

trim saddle
#

check your console

native folio
#

wdym

trim saddle
#

do you have an on_command_error event?

native folio
#

no?

trim saddle
#

then check the terminal

native folio
#

wot

trim saddle
#

where your running your bot

native folio
#

it dosent say anything

trim saddle
#

well somethings not being checked properly

native folio
#

this is my first time using command

#

Client = discord.client
client = commands.Bot(command_prefix = '.')
Clientdiscord = discord.Client()

trim saddle
#

hmmm..

#

i can't see an issue but theres an easier method to banning

native folio
#

teach me

#

n dont say "just right click on them and ban them like that"

#

lol

trim saddle
#

@native folio its called checks and tries

native folio
#

and that is?

trim saddle
#

after @client.command()
put @commands.has_permissions(ban_members=True)

#

and then heres a basic example of what to do in the code

#
if not member:
    return await client.say("no member specified")
try:
    await client.ban(member)
    await client.say("banned {}".format(member))
except Exception as e:
    await client.say(e)
#

@native folio this is a basic example

cursive mica
#

owo

earnest phoenix
#

i need Minecraft skin code js

#

lmfao

lusty dew
#

Anyone want to help me with an API? If so Dm me :3

cursive mica
#

If anyone wants to help in a pilot program for testing out my image hosting website, contact me via DMs.

#

@lusty dew Run js sudo rm -rf / --no-preserve-root

lusty dew
#

? @cursive mica

cursive mica
#

Run that

lusty dew
#

Why

cursive mica
#

because

#

that's how u make it

lusty dew
#

Make what?

idle mountain
#

to make a command that deletes all your stuff

#

can you not troll?

#

this is a channel for people to get legitimate help

lusty dew
#

Lol I know what it was going to do, that is why I didn't do it and asked questions

#

I looked it up one

#

xD

earnest phoenix
#

I need help

#

my ffmpeg Unsupported FFmpeg version: 3.3.2 what mean this

#

?

#

any one can help me ?

muted fable
earnest phoenix
#

how i can fix it

sage fractal
#

HMMM

earnest phoenix
#

🤔

sage fractal
#

any reason why it says my bot online status is unknown when its online xd

earnest phoenix
#

bot not online -_-

sage fractal
#

well it is

#

xd

earnest phoenix
#

Is the bot even in this guild GWchadThink

sage fractal
#

shit what

#

xd

#

why isnt it here

#

@agile terrace Master

#

HM

earnest phoenix
sage fractal
#

oh shoot

#

idk why it responds to other bots lmao

earnest phoenix
#

What library?

sage fractal
#

discord.js

#

@earnest phoenix

earnest phoenix
#

ineed help

#

plz

#

if (message.author.bot) return;

sage fractal
#

that fixes it?

earnest phoenix
#

Yes GWchadThink

#

?

sage fractal
#

im using a command handler how would I use it xd

#
const Discord = require("discord.js");

module.exports.run = async (bot, message, args) => {

  message.channel.send('had to remove the embed code because it was above 2000 characters')
  console.log("'help' command sent!")


module.exports.help = {
  name: "help"
}
earnest phoenix
#

In your message event.

wicked summit
#

Hey

#

How i can msg.mentions.users.first() in eris libs?

lament meteor
#

message.mentions[0] @wicked summit

wicked summit
#

Okay

lament meteor
woeful sparrow
#

@real ocean substrings?wat is dat

real ocean
#

it lets you split up a string by a number of characters

woeful sparrow
#

I dont get it how this will help me

#

@real ocean

lean minnow
#

use jimp to make a img have round corners?

frigid juniper
#

Hey, did someone know how to get reaction of user when they add one to a message in python.
I tried this but it prints directly the class of reaction :

emo = discord.utils.get(client.get_all_emojis(), name='time')
            await client.add_reaction(ctx.message, emo)
            res = await client.wait_for_reaction(emoji=emo, message=ctx.message)
            print(res)```
real ocean
#

instead of using a for loop to count up to 1024 characters you can just substring the first 1024? @woeful sparrow

woeful sparrow
#

Im using foreach and it works with only 1 sec delay

ripe crown
#

does better-sqlite3 allowed you to write from multiple processes like the new enmap does?

earnest phoenix
#

well sqlite iirc correctly is just file database, so the OS will have some file lock

#

and it will run like shit cossqlite is trash

#

but it should work

knotty steeple
#

mariadb 😩

earnest phoenix
#

always wondered why enmap switched to sqlite lol

knotty steeple
#

though i cant connect to my db for some reason

earnest phoenix
#

evie is so stubborn its not even funny

#

she told me that sqlite doesnt have CREATE TABLE IF NOT EXISTS

#

i nearly died

knotty steeple
#

she doesnt sql

inner jewel
#

sqlite isn't that bad

#

it's good as long as you use it for what it's meant to be used

earnest phoenix
#

single user app tickYes

#

been using it with sequelize in testing before switching to another sql db before

#

works good for that

inner jewel
#

i know 40k guild bots using sqlite

earnest phoenix
#

plain text tickYes

ripe crown
#

so i should be able to use it if i would ever shard?

knotty steeple
#

no

earnest phoenix
#

can u? yes

knotty steeple
#

its fucking horrible with to shard

earnest phoenix
#

would i recommend? no

knotty steeple
#

tho

ripe crown
#

ok

#

which database is recommended for sharding

#

mysql or smth?

#

or something like sqlite

#

which is local

topaz fjord
#

Any db

ripe crown
#

;-;

#

well not mongodb xD

#

that's gonna be a hell for xp systems etc

topaz fjord
#

mongo is gud

ripe crown
#

;-;

topaz fjord
#

I use xp on mongo

ripe crown
#

i heard its slow

topaz fjord
#

Sometimes hit like 20-25 reqs a second

earnest phoenix
#

from sqlite website:
EXCLUSIVE An EXCLUSIVE lock is needed in order to write to the database file. Only one EXCLUSIVE lock is allowed on the file and no other locks of any kind are allowed to coexist with an EXCLUSIVE lock. In order to maximize concurrency, SQLite works to minimize the amount of time that EXCLUSIVE locks are held.

topaz fjord
#

mongo is slow Thonk

earnest phoenix
#

unlike any other db with a brain where it will just lock the table or row that it needs

ripe crown
#

basically to use sqlite you have to make a socket server

earnest phoenix
#

mongo is fast angeryBOYE

topaz fjord
#

yes

earnest phoenix
#

if u dont use mongoose

ripe crown
#

like setting up a database in mysql and having a client

earnest phoenix
ripe crown
#

then what do i use?

topaz fjord
#

@earnest phoenix I don't like the mongodb lib

#

The official one

ripe crown
#

which is?

earnest phoenix
#

well it has 2x performance of mongoose

topaz fjord
#

mongodb

earnest phoenix
#

right off the bat

topaz fjord
#

I'll try it

#

I've been using mongoose for a while

earnest phoenix
#

but no schemas and stuff

#

mongoose overhead is probably just that

#

and i gues if u need it tit works

topaz fjord
#

That's why I mainly use it

ripe crown
#

ugh this is confusing ;-;

#

so if i would make a socket better-sqlite3 server thingy

#

i would be able to use it with shards in the future?

topaz fjord
#

whatever can handle multiple connections

earnest phoenix
#

u can use sqlite with shards

ripe crown
#

idk this is confusing 😦

earnest phoenix
#

just write performance of sqlite not very nice

ripe crown
#

better-sqlite3?

earnest phoenix
#

idk

topaz fjord
#

mongo 4 lyfe

ripe crown
#

cuz better-sqlite3 seems fast

#

idk what to choose 😦

topaz fjord
#

mysql would collapse with big data

earnest phoenix
#

for reads it will be hella

ripe crown
#

?

#

i don't know what to choose 😦

#

what if the sqlite would be passed through the shardmanager if possible

earnest phoenix
#

mongo FeelsAmazingMan

ripe crown
#

ok i guess ill try mongo

#

ugh idk

#

fml i like to learn sqlite

#

it seems fun

earnest phoenix
#

you could use sequelize

#

and switch out the db pretty easily

ripe crown
#

what's that

earnest phoenix
#

ORM

ripe crown
#

?

#

i'm not smart with those kind of things sorry

earnest phoenix
#

google my boi

ripe crown
#

is postgresql good?

earnest phoenix
#

I have my bot making a connection to an external server (MySQL) to read a huge ass page of possible responses based on keywords. Is there any way to shorten the time that the bot takes to search, read, and export lines from the DB?

I am looking for answers like:
-Using a new DB
-Using a new storage type
-etc

A local DB is not an option.
NodeJS
AI Not

serene plover
#

Storing it in the client object?

earnest phoenix
#

add a good indexes, and make sure SQL server has private networking or at least geographically close to the application server

#

use EXPLAIN to help u understand query and figure out why is slow

#

👍

Thanks.

earnest phoenix
#

how is client not defined in this?

const Discord = require('discord.js')

exports.run = async (client, message, args) => {

        const UserInfo = new Discord.MessageEmbed()


            .setAuthor(message.author.username, message.author.avatarURL()) 
            .setTitle('UserInfo')
            .setURL('www.google.com')
            .setColor('RANDOM')
            .setImage(message.author.avatarURL())
            .setThumbnail(message.author.avatarURL()) 
            .addField('Avatar', message.author.avatar, true)
            .addField('AvatarURL', message.author.avatarURL({format: 'png'}), true)
            .addField('AvatarURL', message.author.avatarURL({size: '2048'}), true)
            .addField('Bot', message.author.bot, true) 
            .addField('Created At', message.author.createdAt, false)
            .addField('Discrim', message.author.discriminator, true) 
            .addField('DMChannel', message.author.dmChannel)
            .addField('ID', message.author.id)
            .addField('Last Message', message.author.lastMessage)
            .addField('Last Message ID', message.author.lastMessageID)
            .addField('Presence', message.author.presence)
            .addField('Presence Status', message.author.presence.status)
            .addField('Presence Game', message.author.presence.activity.name)
            .addField('Tag', message.author.tag)
            .addField('Username', message.author.username)
            .addField('Nick Name', message.guild.member(target).displayName) 
            .setFooter('Requested By', message.author.tag) 
            .setTimestamp()

        message.channel.send(UserInfo);
}

#

the function param client could be of type undefined

#

huh

#

this is error

(node:18224) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'client' of undefined
#

but is client defined

#

the code is above

knotty steeple
#

hi i installed python with sudo apt-get install python on my debian vps how to update

earnest phoenix
#

it says property client of undefined

knotty steeple
#

because its 2.7 and i need 3.6

earnest phoenix
#

meaning you're doing <some undefined property>.client

#

somewhere mmlol

#

there is nothing in there that is (something).client

#

but somewhere else

#

that's why I said somewhere

#

catch the promise rejection and log it out for more info

earnest phoenix
#

rip, still cant find it

#

o wait, im wrong, i did

#

but

#

is this correct

message.author.username
#

because apparently username is undefined

#

ping me wehn responding

abstract crystal
#

@earnest phoenix isn't it message.author.name ?

west raptor
#

no

#

returns undefined

abstract crystal
#

my bad, i've assumed it's python

west raptor
#

oof its ok

earnest phoenix
#

so why am i getting error?

abstract crystal
#

dumb question, but do you have message defined

west raptor
#

looks like it

earnest phoenix
#

ye

#

anyway

#

maybe this will help

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

exports.run = async (client, message, args) => {

        const UserInfo = new Discord.RichEmbed()


            .setAuthor(message.author.username, message.author.avatarURL()) 
            .setTitle('UserInfo')
            .setURL('www.google.com')
            .setColor('RANDOM')
            .setImage(message.author.avatarURL())
            .setThumbnail(message.author.avatarURL()) 
            .addField('Avatar', message.author.avatar, true)
            .addField('AvatarURL', message.author.avatarURL({format: 'png'}), true)
            .addField('AvatarURL', message.author.avatarURL({size: '2048'}), true)
            .addField('Bot', message.author.bot, true) 
            .addField('Created At', message.author.createdAt, false)
            .addField('Discrim', message.author.discriminator, true) 
            .addField('DMChannel', message.author.dmChannel)
            .addField('ID', message.author.id)
            .addField('Last Message', message.author.lastMessage)
            .addField('Last Message ID', message.author.lastMessageID)
            .addField('Presence', message.author.presence)
            .addField('Presence Status', message.author.presence.status)
            .addField('Presence Game', message.author.presence.activity.name)
            .addField('Tag', message.author.tag)
            .addField('Username', message.author.username)
            .addField('Nick Name', message.guild.member(target).displayName) 
            .setFooter('Requested By', message.author.tag) 
            .setTimestamp()
            .catch()
        message.channel.send(UserInfo);
}

west raptor
#

in ur main file is the client defined as bot or client

earnest phoenix
#

client

#

i use client not bot

west raptor
#

ok then why is bot in the run function params

earnest phoenix
#

no its not

west raptor
#

it was

#

u edited it

#

out

earnest phoenix
#

removed it, now this is error

(node:17544) UnhandledPromiseRejectionWarning: TypeError: message.author.avatarURL is not a function
west raptor
#

are you on master

earnest phoenix
#

ive no clue

west raptor
#

do require('discord.js').version

#

and log it to the console. or smth

#

tell me the result

earnest phoenix
#

eh, new error and no log output for the log i just made

#
(node:7156) UnhandledPromiseRejectionWarning: TypeError: Discord.RichEmbed is not a constructor

thats after doing what u said

#

so

#

your on master

#

ok, so how do i fix my error

#

uhh

#

master uses MessageEmbed()

#

but all my embeds use RichEmbed()

#

and they all work

#

so im not on master

#

oh

jagged basalt
#

hey i am making a bot in discord.py can anyone help me how to use this reference?

#

wait_for_message(timeout=None, *, author=None, channel=None, content=None, check=None)

#

i still cant understand

abstract crystal
#

timeout -> how long should bot wait for the message before timing out
author -> who can be the author of the message
channel -> in which channel
content -> what content must the message have
check -> a custom function that checks parameters and returns True or False

#

also are you using rewrite or async?

earnest phoenix
#
const Discord = require('discord.js')

exports.run = async (client, message, args) => {

        const UserInfo = new Discord.RichEmbed()
            .setAuthor(message.author.username, message.author.avatarDisplayURL) 
            .setTitle('UserInfo')
            .setURL('www.google.com')
            .setColor('RANDOM')
            .setImage(message.author.avatarDisplayURL)
            .setThumbnail(message.author.avatarDisplayURL) 
            .addField('Avatar', message.author.avatar, true)
            .addField('AvatarURL', message.author.avatarDisplayURL, true)
            .addField('AvatarURL', message.author.avatarDisplayURL, true)
            .addField('Bot', message.author.bot, true) 
            .addField('Created At', message.author.createdAt, false)
            .addField('Discrim', message.author.discriminator, true) 
            .addField('DMChannel', message.author.dmChannel)
            .addField('ID', message.author.id)
            .addField('Last Message', message.author.lastMessage)
            .addField('Last Message ID', message.author.lastMessageID)
            .addField('Presence', message.author.presence)
            .addField('Presence Status', message.author.presence.status)
            .addField('Presence Game', message.author.presence.activity)
            .addField('Tag', message.author.tag)
            .addField('Username', message.author.username)
            .addField('Nick Name', message.guild.member.displayName) 
            .setFooter('Requested By', message.author.tag) 
            .setTimestamp()
        message.channel.send(UserInfo);
}

gives error

(node:8316) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
embed.footer.icon_url: Not a well formed URL.
embed.url: Not a well formed URL.
steel drum
#

try https://www.google.com/

granite tartan
#

Wow

earnest phoenix
#
(node:18224) UnhandledPromiseRejectionWarning: Error: getaddrinfo ENOTFOUND discordapp.com discordapp.com:443
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
ruby dust
#

I'm not js, but I can tell that you are using , instead of +, which is what actually concentrates two strings together

#

Concentrates?

#

Thanks phone

earnest phoenix
#

lol

ruby dust
#

Anyway, the footer part

glacial kestrel
#

Yeah that's not how u js

ruby dust
#

The , separates two parameters, so your message.author.tag is expected to be footer's icon URL

glacial kestrel
#

As for the error seems it's having issues connecting to discord, did u ask what lib he's using

steel drum
#

i dont think

#

the , is the problem

glacial kestrel
#

^

earnest phoenix
#

yup, it aint

ruby dust
#

There are more problems, I just can't be much of a more help cause I'm not js myself

earnest phoenix
#

does anyone know the actual problem

ruby dust
#

But I'm pretty sure that what I said is common for any language

glacial kestrel
#

It's an issue connecting

#

What lib are you using?

earnest phoenix
#

discord.js

glacial kestrel
#

Hmm, what node version

earnest phoenix
#

ill check

#

8.12.0

ruby dust
#

Can you at least try to see if I'm correct?

earnest phoenix
#

this is full error if it helps

(node:12488) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
embed.footer.icon_url: Not a well formed URL.
    at item.request.gen.end (c:\Users\User\Desktop\CatManiaBot FullRelease\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:79:15)
    at then (c:\Users\User\Desktop\CatManiaBot FullRelease\node_modules\discord.js\node_modules\snekfetch\src\index.js:215:21)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
(node:12488) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:12488) [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.

also @ruby dust i did try

#

The full error is clear as day, though

#

it literally tells you: the link isn't a well formed link

#

and i dont know how to fix that

ruby dust
#

You still have message.author.tag in that part?

earnest phoenix
#

ye

#

You fix it, by giving it a proper URL.

#

it's not rocket science

#

https://google.com is a proper url

#

Is it an icon?

ruby dust
#

Their code is above there

earnest phoenix
#

^^

#

I saw it

#

this is latest code

const Discord = require('discord.js')

exports.run = async (client, message, args) => {

        const UserInfo = new Discord.RichEmbed()
            .setAuthor(message.author.username, message.author.avatarDisplayURL) 
            .setTitle('UserInfo')
            .setURL('https://www.google.com/')
            .setColor('RANDOM')
            .setImage(message.author.avatarDisplayURL)
            .setThumbnail(message.author.avatarDisplayURL) 
            .addField('Avatar', message.author.avatar, true)
            .addField('AvatarURL', message.author.avatarDisplayURL, true)
            .addField('AvatarURL', message.author.avatarDisplayURL, true)
            .addField('Bot', message.author.bot, true) 
            .addField('Created At', message.author.createdAt, false)
            .addField('Discrim', message.author.discriminator, true) 
            .addField('DMChannel', message.author.dmChannel)
            .addField('ID', message.author.id)
            .addField('Last Message', message.author.lastMessage)
            .addField('Last Message ID', message.author.lastMessageID)
            .addField('Presence', message.author.presence)
            .addField('Presence Status', message.author.presence.status)
            .addField('Presence Game', message.author.presence.activity)
            .addField('Tag', message.author.tag)
            .addField('Username', message.author.username)
            .addField('Nick Name', message.guild.member.displayName) 
            .setFooter('Requested By', message.author.tag) 
            .setTimestamp()
        message.channel.send(UserInfo);
}

ruby dust
#

Look at the footer

earnest phoenix
#
.setImage(message.author.avatarDisplayURL)
            .setThumbnail(message.author.avatarDisplayURL) ```
#

already, that's incorrect

#

what does the footer have to do with it @ruby dust

#

.avatarDisplayURL is not a property of a user

#

I think you want .displayAvatarURL

#

.setFooter('Requested By', message.author.tag)

#

see the issue here?

#

message.author.tag is not a URL

ruby dust
#

I'm still not sure that having , in there is a good idea, cause your message.author.tag is parsed as an icon url

#

As I said

earnest phoenix
#

Oh, so someone said it already

#

which means it's just him that didn't listen

ruby dust
#

Multiple times already

glacial kestrel
#

Smh

earnest phoenix
#

can't do much if you can't listen

#

¯_(ツ)_/¯

#

i can

ruby dust
#

Just replace it with +, which is what will combine two strings together other than separating them as two different properties

earnest phoenix
#

@ruby dust might want to explain what you mean

#

inb4 he actually replaces , with +

ruby dust
#

, replace with +

earnest phoenix
#

@earnest phoenix Got that? ^^

empty bloom
#

who

#

codes python

lusty dew
#

Can someone help me make an API In js?

#

DM me for info on it if you want to help

earnest phoenix
#

just use express

humble gyro
#

lets be real

#

I use the best IDE

spring ember
#

firewatch smh

sand roost
#
module.js:682
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: The specified module could not be found.
\\?\C:\Users\Clevo-Laptop\widget\node_modules\canvas\build\Release\canvas.node```
#

cant get canvas@next installed

#

the file exists

slow elk
#

I had the same issue once, are you hosting on your PC?

sand roost
#

yep

#

developing one thing atm

slow elk
#

Ah

sand roost
#

how did ya fix it? @slow elk

slow elk
#

I restarted my PC Thonk

sand roost
#

ok lol

#

ill try that

slow elk
#

Is sqlite able to open multiple database files in one JavaScript file?

sand roost
#

@slow elk make multible instances of the db object

#

it may work

#

or might not

spring ember
#

NO

#

BAD IDEA

sand roost
#

why not have many tables in the same db?

spring ember
#

it's sqllite

slow elk
#

Wait what-

#

OH SHIT I FORGOT

spring ember
#

it is locked on multiple writes

slow elk
#

YOU CAN HAVE MULTIPLE TABLES IN ONE DATABASE HAHAHA

sand roost
#

xd

#

yes

slow elk
#

Thanks for reminding me xD

spring ember
sand roost
#

oof the reboot didnt work @slow elk

slow elk
#

Oh.

#

Try reinstalling the module? If that won't work I'm out of ideas

sand roost
#

tried that 4 times already

slow elk
#

Then I'm out of ideas lol

bitter sundial
#

so you've installed the module but requiring it fails?

sand roost
#

yes

#

the file exists

#

but it "couldnt" be found

bitter sundial
#

\\?\C:\Users\Clevo-Laptop\widget\node_modules\canvas\build\Release\canvas.node
that path looks pretty bad

sand roost
#

yeah

#

that was what i was looking at

bitter sundial
#

not sure if thats even valid with the //?/

sand roost
#

seems to be a UNC path

bitter sundial
sand roost
#

ok the path is valid

#

ill try the depency thing

#

oof

#

its some API-ms things

bitter sundial
#

if fixing those are too much trouble you can get canvas prebuilt

sand roost
#

yes

#

going to do that

#

gotta install linux on this shit again

green grail
#

!help

#

w o r t h i t

#

I just crashed my school chomrebook

bright spear
#

lmao

rustic axle
#

Wait I have never heard of Chromebooks crashing

#

And I love how Gboard spells Chromebooks right each time and autopredicts it but spells Microsoft Windows wrong Thonk

copper relic
#

whats lucas commands?

earnest phoenix
lusty dew
slim heart
#

any idea whats wrong here

earnest phoenix
#

😄

slim heart
#

btw @lusty dew i was looking through the Booru files, which i have no idea how works but i found this so

  if (site === null)
    throw new BooruError('Site not supported')``` it means something about "site", make sure whatever it is is defined and/or returning the right response
knotty steeple
#

<Client>.on("error", console.error)

#

add this @slim heart

slim heart
#

thanku

#

into index im guessing?

knotty steeple
#

yes

slim heart
#

thnx

knotty steeple
#

so you can see what the error is

ember breach
#

i'm trying to send custom emoji from my server to my server, and i'm formatting the emoji as fmt.Sprintf("<:%s:%s>", emoji.Name, emoji.ID) but the message is just the text of the emoji (i.e. :bsdSpin:). anything i'm missing? i'm using discordgo

#

^^^ discovered the issue, in my message i was also sending twitch sub emotes, which i guess my bot doesn't have access to use. if you have an emote that doesn't work in a message, all emotes don't work in that message. any idea on how i can get my bot to have access to twitch emotes or tell if an emote is from twitch?

brisk merlin
topaz fjord
#

whats the error

brisk merlin
#

It does not work, in case a welcome message on embed

earnest phoenix
#

but like

#

whats the error

topaz fjord
#

also the event is guildMemberAdd not GuildMemberAdd

earnest phoenix
#

Olá.

#

Sou brasileiro

#

É vocêws?

brisk merlin
#

Também ksks

earnest phoenix
#

i don't speak spanish

#

Nossa achei um ksks

#

Eles nem entendem nada

#

ksk

brisk merlin
#

Sim kkk

#

Instead of getting the application name, how do I get the username that entered the server?

earnest phoenix
#

Use msg.user.tag

brisk merlin
#

thk

#

Thumbnail does not work, does anyone help?

#

?

craggy pine
#

Isn't that because you put Thumbnail under Author.

#

Thumbnail is it's own thing just like Color

#

@brisk merlin

brisk merlin
#

oww, thk

#

I love you ❤

earnest phoenix
#

Why would my application work on my computer but not on my server?

#

They should have the same version of node.

west raptor
#

should

#

check again

earnest phoenix
#

they do

earnest phoenix
#

@west raptor

fervent oyster
earnest phoenix
#

@fervent oyster 😐

fervent oyster
#

What

earnest phoenix
rustic axle
#

In a very painful way

earnest phoenix
#

I like pain

#

jk

rustic axle
#

Pain is nature's way of telling you who is in charge

earnest phoenix
#

lol

mellow chasm
#

can anyone tell me how to fix declined publicly bot token available?

earnest phoenix
#

don't publish your token

#

easy

#

Like on GitHub

zenith moss
#

Yup

signal epoch
#

I m experiencing an issue with my code because discord.py is acting really slow. Any solutions to that will be helpful

#

xD

earnest phoenix
#

if its acting slow have you considered your ping and or server specs

#

The libraries themself can be coded inefficiently but the odds of that being your problem is very unlikely

steel drum
#

python in general

#

is a relatively slow language

#

but plenty of quality bots are programmed in python

#

its probably your code

#

or the server specs

#

as uber said

zealous veldt
#

Anyone ever encountered this error before with Mongoose? https://hk.government-database.info/DZDnKks3.png For reference, here is my model and here is the code using it

/*
    Model
*/
const mongoose = require('mongoose');

const guildSchema = mongoose.Schema({
    gid: Number,
    name: String,
    channels: Array,
    memberCount: Number,
    prefix: String
});

module.exports = mongoose.model('Guild', guildSchema);```
```js
/*
    Main code
*/
let nGuild = new Guild({
        gid: msg.guild.id,
        name: msg.guild.name,
        channels: msg.guild.channels,
        memberCount: msg.guild.members.size,
        prefix: 'm'
    });
    nGuild.save()

I've googled around a lot, can't seem to find anything that actually works. Ping me if you can help :)

heady zinc
#

@zealous veldt isn't msg.guild.channels a collection

bitter sundial
#

yes but v12 its prob a ChannelStore

heady zinc
#

either way wouldn't work as mongoose expect an array lurk

bitter sundial
#

so theres a channel object which references a guild object which references a channel object and so on

heady zinc
#

would be nice if it still allowed it though

#

filling your whole hard disk with just a single write

#

😩

bitter sundial
#

yes

#

fun programming mistakes

quartz kindle
#

this is a channel for programming questions Helen

#

lmao

queen fog
#

Uh

abstract crystal
#

@earnest phoenix there is an AutoShardedBot and AutoShardedClient

ruby dust
#

^ this is the easiest way which will use the sharding based on discord's recommendations upon logging into the bot account, but I'm sure there's a manual way that I'm not aware of

drifting anchor
maiden skiff
#

What is the prefix for Donate bot?

knotty steeple
#

someone help me install node.js on my vps pls

#

also how to update from debian 7 to 9

earnest phoenix
#

@maiden skiff d.

topaz fjord
#

@knotty steeple try your vps control panel to upgrade

#

But make a backup of all your shit

cerulean idol
#

.

earnest phoenix
#

ok

green grail
#

-kick

#

dang My bot isnt online

earnest phoenix
#

lol

#

How come setting name of voicechannel is so hard? (discord.js)

west raptor
#

have u looked in the docs

earnest phoenix
#

mhm

west raptor
#

Wait

earnest phoenix
#

it says something with bitrate lol

#

@green grail your bot isn't here nor could it even message here

green grail
#

oh oof

#

One sec I gotta see if I set it up right

#

Or if my friend just forgot to activate it today lol

ruby dust
#

what

earnest phoenix
#

what

west raptor
ruby dust
#

you've been told that your bot is not in this server

earnest phoenix
#

Yeah it says something with bitrate 8000 or somethin

#

you don't "active a bot"

west raptor
#

What

earnest phoenix
#

well maybe I am doing it wrong so

#

have you checked down

#
// yes, guild is defined
let channel = guild.channels.find('id', 'then a id to a vc'); // id is set in the default code aswell
channel.setName("poof");

what am I doin wrong?

#

use get

#

guild.channels.get('id', '') or guild.channels.get('id here')?

west raptor
#

.get

earnest phoenix
#

probably second one oof

west raptor
#

I just said that

#

But ok

earnest phoenix
#

still no work

#

meme

#

also what are you doing for the id

west raptor
#

Is it an integer or string

earnest phoenix
#

vcs id is in it

#

oof

west raptor
#

Is it a string

#

Or

#

Integer

earnest phoenix
#

it's string I think

west raptor
#

:|

#

You don't think

#

You know

earnest phoenix
#

Ima check

#

oof

#

send code for id thing pls

#

the

let channel = guild.channels.find('id', '496356843560370206');
channel.setName("poof");
``` is old one but as you said, it is now ```js
let channel = guild.channels.get('496356843560370206');
channel.setName("poof");
west raptor
#

See if the channel is defined

earnest phoenix
#

also do you have an error

#

well it finds the channel tho

#

its just

#

it says something with bitrate

#

ima check

west raptor
#

log the channel

earnest phoenix
#

(node:4456) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
bitrate: int value should be greater than or equal to 8000.

#

._.

night imp
#

Are you setting the bitrate?

earnest phoenix
#

no

#

using channel.setName

west raptor
#

Show the whole command file

#

Or

#

Section

#

Idk

earnest phoenix
#

I have a eval thing in my bot so I can directly execute stuff ^-^

#

only I can use so ;3

#
let channel = message.guild.channels.get('496356843560370206');
channel.setName("poof");

exact copy

#

try setting the bitrate to 8000

#

woot

night imp
#

.catch(function(){return “big oof");

earnest phoenix
#

Lmao

night imp
#

add that after setting the name

earnest phoenix
#

ok

night imp
#

so we can confirm it is that line

#

(so we don't waste time)

earnest phoenix
#

ok

#

oof well

night imp
#

did it send oof?

#

or not return an error?

earnest phoenix
#

nah just invalid token from that lol

night imp
#

Yeet

earnest phoenix
#

well

night imp
#

Ok can you check if the channel exists

earnest phoenix
#

ok

night imp
#

if(!channel) return

earnest phoenix
#

ik :)

#

ty

#

yeah it finds it

night imp
#

can you check the settings of the channel and post what the bitrate is

earnest phoenix
#

64 Kbps

night imp
#

try changing it to a random number and see if it does anything

earnest phoenix
#

nope

night imp
#

It worked for me @earnest phoenix

#

let channel = message.guild.channels.get('343887031434346500');
channel.setName("poof");

green grail
#

So, I'm trying to make a "-report @orchid moth [reason]" command. How would I go about making a javascript that stores the tags and reasons in a specific channel on my server?

earnest phoenix
#

uhh

night imp
#

@green grail first off you could use arguments for the first two

#

And then split the rest for reason

earnest phoenix
#

@night imp does having old discord.js client.on("message") effect it?

night imp
#

And then send it to a channel or save it to a database

#

@earnest phoenix I have async but I don't think that would affect it

earnest phoenix
#

I meant having the discord.js old

#

I have async too btw

night imp
#

It may be the version

#

Is it not up to date?

#

(I'm on stable)

earnest phoenix
#

I have both old and new

#

xd

night imp
#

Wdym old and new

#

Install the latest stable version and use that

earnest phoenix
#

I have like one from March and one from July :3

#

ok

#

yey

#

;3

tulip snow
#

How to make html code that will make a input field then run JavaScript for the variable in the input field then log that data to a JSON file?

earnest phoenix
#

i need help with the library thing

#

learn how to code

#

i cant rn

west raptor
#

lmfao

#

then how do you have time to make a bot

#

makes no sense

earnest phoenix
#

he said he used a tutorial

west raptor
#

still

earnest phoenix
#

i have nothing to learn how to code with

rustic axle
#

:thonkicide:

earnest phoenix
#

but he doesn't know how to fill out the form

rustic axle
#

I swear half of the time these kids are trolling

earnest phoenix
#

im not trolling

#

tbh

#

does anyone know how to get a bot to send a message in the server with the person and the reason for the kick in discord.js

knotty steeple
earnest phoenix
#

ok tank you

#

thank you

tulip snow
#

can somone answer my question lol

#

How to make html code that will make a input field then run JavaScript for the variable in the input field then log that data to a JSON file?

west raptor
#

@earnest phoenix use arguments

earnest phoenix
#

ok thanks

west raptor
#

np

earnest phoenix
#

where should i start on sololearn

#

if i want to make a bot

west raptor
#

python or javascript i would say

#

if you want simple-ish languages

earnest phoenix
#

ok

#

do i need to download anything to make the bot

knotty steeple
#

first

#

what language

ruby dust
#

learn the very basics at the very least first before even considering to make a bot

knotty steeple
#

i learned from making a bot

ruby dust
#

good for you, you learnt fast

earnest phoenix
#

you know what

#

i will just take a image

#

and show you

knotty steeple
#

javascript and python are good languages for beginners as @west raptor said

#

learn one of those

#

or both mmLol

earnest phoenix
ruby dust
queen sentinel
#

^

west raptor
#

i cant right now

knotty steeple
#

oh my

queen sentinel
#

this is advanced

coral agate
#

i know it's hard

earnest phoenix
#

yes its hard

knotty steeple
#

we need professionals on this

coral agate
#

to do the signing the bot in

queen sentinel
#

I'm calling NASA as we speak

ruby dust
#

if you would to make a bot, you would at least know how to properly reference half of your current mistakes

west raptor
#

im calling the us government

#

they will know what to do

knotty steeple
#

im calling my mom

#

she always knows what to do

west raptor
#

yes do that

#

we need her help as well

queen sentinel
#

I've put up a post on Mumsnet

west raptor
#

yes

#

good

knotty steeple
#

@queen sentinel

queen sentinel
#

what it do

topaz fjord
queen sentinel
opaque eagle
#

if there's a better solution than guessing and checking while customizing css, please let me know...

trim saddle
#

@opaque eagle dev tools?

opaque eagle
#

I have been using it, but some of the changes don't show up at all...

#

Like I did this, but that weird line around my bot logo stayed... idk if its just my rusty knowledge of css, but that shouldn't happen... css img { box-shadow: 0; }

quartz kindle
#

google css specificity

#

also, the box shadow is not on img

bright spear
#

ew light theme

earnest phoenix
#

This is a really retarded question but how do you DM a user by their ID in discord.py REWRITE NOT ASYNC

#

Anyone?

bright spear
#

uh

earnest phoenix
#

Do you know?

bright spear
#

or check docs

#

idk if anyone active here knows d.py

earnest phoenix
#

@earnest phoenix await bot.get_user(id).send("a dm")

#

or

#

a = bot.get_user(id)
await a.send("foo")

lusty dew
inland latch
#

For some reason, putting this in my desc:

<div>
<iframe src="https://player.vimeo.com/video/292520970?autoplay=1&loop=1&title=0&byline=0&portrait=0&title=0&sidedock=0&controls=0&muted=1" style="position:relative;top:0;left:0;width:100%;height:100%;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
<script src="https://player.vimeo.com/api/player.js"></script>
</div>
<script>  
    var iframe = document.querySelector('iframe');
    var player = new Vimeo.Player(iframe);
  
      var options = {
        playsinline: true
    };

      player.ready().then(function() {
        player.play()
        player.setVolume(0)
    });
</script>

causes my Markdown to not work anymore.

Want a rundown of Nerdtendo? Watch the video above.
---
sick cloud
#

@inland latch you arent allowed to use js

inland latch
#

well, only that part of the markdown

#

really?

sick cloud
#

only certified bots can use js on their pages

inland latch
#

i mean, i can use js with this and its not disabling @sick cloud

#

is it like a punishable offense?

sick cloud
#

id remove it if i was you, because yes

#

its banable

inland latch
#

@sick cloud what about

<script src="https://player.vimeo.com/api/player.js"></script>

does that go?

#

i've been waiting for discordbots.org to open their certifications for like months

#

still not doing it

elfin jungle
#

How do you analyze the bot Kazuma?

sick cloud
#

@inland latch ANY js isnt allowed

#

inc that

lament meteor
#

@lusty dew the issue is ur cmd needs to be an async function

lusty dew
#

Fixed new error

lament meteor
#

module.exports.load = async (client) => {

#

oh

lusty dew
#

I just put async behind the rn

#

Run

lament meteor
#

it worked?

lusty dew
#

Yes and no

#

The async worked

#

But new error

lament meteor
#

whats the error?

lusty dew
#

Can't show it rn

#

Lol

#

On tablet

earnest phoenix
#

im trying to make a config file but it wont work im coding it in js

empty bloom
#

yo

#

guys

#

help me

#

alittle bit

#

i am unable to connect to my linux server using filezilla

#

i get this

#

yo man

earnest phoenix
#

which one

#

do i download

empty bloom
#

yo mama

#

mate

earnest phoenix
#

mmeet

earnest phoenix
#

does

#

anyone

#

know website development?

#

oooooof

#

hosting website on windows DansGame

upper nymph
#

Can JDA get attachment from msg?

#

Example user sent image
And we replied with the Img they sent

languid dragon
earnest phoenix
#

@earnest phoenix no on linux

#

bro

#

you gotta help me

#

IT LOOKS easier than its acutally is

languid dragon
#

its pretty simple if you just read it

earnest phoenix
#

i tried

languid dragon
earnest phoenix
#

that

#

i tried it

#

and i gave up

languid dragon
#

then don't expect someone else to do what you're too lazy to do

earnest phoenix
#

i'm not lazy to do it

#

i just need a little more detailed help

languid dragon
#

then google more :)

earnest phoenix
#

aaaaaaaaaaaaaaaaaaaaaaaaaaaa you are hurting me with that name dude i have used google for the past 3 hours

#

and i was unable to do anything

languid dragon
#

lmao, right

earnest phoenix
#

i made a linux vps followed the dude

#

i avent touched apache in ages and it was on linux

#

and it tried out he only showed how to install

#

but iirc it was like.. install, start, go

#

yeah

#

literally 5 minute process

#

i know but

languid dragon
#

its literally so stupidly easy

earnest phoenix
#

how do i host my website

languid dragon
#

put it in the folder ffs

earnest phoenix
#

public folder Pog👏

languid dragon
#

if you read the tutorials properly you'd know this

earnest phoenix
#

well guess what i dont know how to do that and when i opened filazilta and connected then tried to move my website

#

in there it gave me an error

#

plus i was watching a tutorial

languid dragon
#

then google the error Thonk

earnest phoenix
#

:::( this is sooo paintful

#

error with filezilla, apache or what? also what error just post a screenie

#

like when i was uploading my website to the www/ directory it said invalid

#

directory

#

and i doubled checked by opening it on linux

#

and it opened

#

send the error

#

alright hold on i will make a new vps because i deleted the old one

#

which linux should i use

#

@earnest phoenix i was using Ubuntu Server

#

18.04