#development

1 messages · Page 772 of 1

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

is it install

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

but still same error

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

?? means

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

late hill
#

the warning comes from GuildSetupNode

#

not the controller

tranquil drum
#

ty @late hill

#

turns out my bot got added to a huge guild

#

just had to increase the jvm mem limit

earnest phoenix
#

@sage bobcat its on vps and i have restart the bot

sage bobcat
#

One message removed from a suspended account.

slender thistle
#

@sage bobcat Bring me up to speed I don't get the context

earnest phoenix
#

still same error

slender thistle
#

@minor kelp Did you have an issue with Python

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

help me out

#

getting same error again and again

#

Why my bot status is ???

#

it has not been verified yet

#

once it gets verified it'll show the true status

#

But it s added

#

Android 10

#

It s added

#

are you-

#

i said verified not added

#

oh

#

it is verified?

#

i'm guessing it isn't in the bot cache that gets the status

#

it's fine

slender thistle
#

Looks very verified to me

#

Yeah nvm I checked the wrong bot

earnest phoenix
#

@earnest phoenix ur bot doing dm advertising

#

wjen i join the server i got dm by ur bot

#

and i complain about that

quartz kindle
earnest phoenix
#

yaa

shut cipher
#

anyone here good with pycharm/discord.py?

modest maple
#

already awnsered yes to that earlier

#

you just ignored me

#

xD

shut cipher
#

im not sure what this error message means or how to fix it

slender thistle
#

The bot you are using DBLClient with is not on top.gg

#

or not yet approved

shut cipher
#

that would make sense lmao ty

earnest phoenix
#
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::5000
    at Server.setupListenHandle [as _listen2] (net.js:1309:16)
    at listenInCluster (net.js:1357:12)
    at Server.listen (net.js:1445:7)
    at DBLWebhook._startWebhook (/root/AtlantaBot/node_modules/dblapi.js/src/web                         hook.js:45:18)
    at new DBLWebhook (/root/AtlantaBot/node_modules/dblapi.js/src/webhook.js:27                         :12)
    at new DBLAPI (/root/AtlantaBot/node_modules/dblapi.js/src/index.js:69:22)
    at Object.init (/root/AtlantaBot/helpers/discordbots.org.js:16:23)
    at module.exports.run (/root/AtlantaBot/events/ready.js:20:24)
    at Atlanta.<anonymous> (/root/AtlantaBot/index.js:34:49)
    at Atlanta.emit (events.js:321:20)
    at WebSocketManager.triggerClientReady (/root/AtlantaBot/node_modules/discor                         d.js/src/client/websocket/WebSocketManager.js:440:17)
    at WebSocketManager.checkShardsReady (/root/AtlantaBot/node_modules/discord.                         js/src/client/websocket/WebSocketManager.js:424:10)
    at WebSocketShard.<anonymous> (/root/AtlantaBot/node_modules/discord.js/src/                         client/websocket/WebSocketManager.js:204:14)
    at WebSocketShard.emit (events.js:321:20)
    at WebSocketShard.checkReady (/root/AtlantaBot/node_modules/discord.js/src/c                         lient/websocket/WebSocketShard.js:465:12)
    at WebSocketShard.onPacket (/root/AtlantaBot/node_modules/discord.js/src/cli                         ent/websocket/WebSocketShard.js:437:16)
Emitted 'error' event on Server instance at:
    at emitErrorNT (net.js:1336:8)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  code: 'EADDRINUSE',
  errno: -98,
  syscall: 'listen',
  address: '::',
  port: 5000
}
``` y i am getting this error
mossy vine
#

Error: listen EADDRINUSE: address already in use :::5000

earnest phoenix
#

means

shut cipher
#

i was using token for test bot and not @fringe jungle

modest maple
#

port is in use

tiny tinsel
#

@earnest phoenix That something is already listening to port 5000.

earnest phoenix
#

so how i change it

#

and fix it

tiny tinsel
#

@earnest phoenix Kill the proccess that uses it (If you can)

earnest phoenix
#

how??

tiny tinsel
#

In your task manager if local.

earnest phoenix
#

i am on vps

tiny tinsel
#

Is it linux?

modest maple
#

if its a vps

earnest phoenix
#

ubuntu

modest maple
#

dont try kill the task

#

just use a diffrent port

tiny tinsel
#

@modest maple Why not.

#

It could be the bot itself.

#

@earnest phoenix What's the language? Javascript?

modest maple
#

just use a diffrent port skySmile

#

easier

#

xD

earnest phoenix
#

yes djs

tiny tinsel
#

@earnest phoenix Do you by any chance have a event to listen on process exist?

earnest phoenix
#

uhh

tiny tinsel
#

@earnest phoenix lsof -i :5000 what is the output?

earnest phoenix
#

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
node\x20/ 32310 root 20u IPv6 7490832 0t0 TCP *:5000 (LISTEN)

#
(node:792) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'inviter' of null
``` Help
tiny tinsel
#

Yeah that's another instance of your bot probably.

#

@earnest phoenix sudo kill 32310

#

Did your bot crash recently?

earnest phoenix
#

no such process error

tiny tinsel
#

🤔

earnest phoenix
#

showing me this error

tiny tinsel
#

Probably a zombie proccess.

earnest phoenix
#
b0nano 2.9.3
       ^^^

SyntaxError: Unexpected number
    at wrapSafe (internal/modules/cjs/loader.js:1060:16)
    at Module._compile (internal/modules/cjs/loader.js:1108:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1164:10)
    at Module.load (internal/modules/cjs/loader.js:993:32)
    at Function.Module._load (internal/modules/cjs/loader.js:892:14)
    at Module.require (internal/modules/cjs/loader.js:1033:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at /root/AtlantaBot/index.js:33:28
    at Array.forEach (<anonymous>)
    at init (/root/AtlantaBot/index.js:30:14)
tiny tinsel
#

Hmmm

#

That's because It except a number

#

2.9.3 isn't a number.

earnest phoenix
#

so i need to change

#

it

#

to 293

tiny tinsel
#

What is 2.9.3?

#

Bot version?

#

And yes. Try that.

earnest phoenix
#

but their is no number in my events/ready.js

tiny tinsel
#

2.9.3 what is it?

earnest phoenix
#

but their is no number like that

vital lark
#

remove the file

#

remove .ready.js.swp

tiny tinsel
#

Oh

#

It is a swap file.

vital lark
#

yes

tiny tinsel
#

I didn't realize until now.

modest maple
#

welp

#

time to delete 2000 lines

#

db is set up weirdly and odd

#

time to redo

#

xD

earnest phoenix
#

@flat pelican pardon rahatsız ediyorum,
discord.js de inviter kullanılmıyor sanırım bende nedense hata oluşuyor ve hal edemiyorum,
Hata :

(node:792)
UnhandledPromiseRejectionWarning:
TypeError: Cannon read property
'inviter' of null

Eğer yardım etmek istersen lütfen benj etiketle

earnest phoenix
#

english only here please

summer torrent
#

readthedocs @earnest phoenix

earnest phoenix
#

@summer torrent Niyə Azərbaycan bilib ingilizce danışırsan :d

marble juniper
#

english

#

only

earnest phoenix
#

ok

summer torrent
#

@earnest phoenix english only in this channel

earnest phoenix
#

@summer torrent error
(node:792) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'inviter' of null

marble juniper
#

can you give like code

#

where you define the user

#

or where you want to get the user

#
like message.author or something
summer torrent
#

🤦‍♂️

marble juniper
#

or whatever

earnest phoenix
#

is there any possible way to lower the bots ping

modest maple
#

better internet

summer torrent
#

^

earnest phoenix
#

i dont host it on my pc

modest maple
#

then get vps with better internet

blissful scaffold
#

Host your bot in the same datacenter as Discord

#

Ping is usually related to the distance from the Discord datacenter

severe anchor
#

I have already authorized this bot to make the votes but it does not appear as if I authorized it and does not grab the commands to claim for having voted that bot

blissful scaffold
#

You can't vote for your bot because your bot is not listed on top.gg

severe anchor
#

but

#

i vote for pokecord

blissful scaffold
#

this is not the pokecord support server

severe anchor
#

in the page

#

and

modest maple
#

not a support server

#

you need to click the "join support server" button under the image

severe anchor
#

fuck off

blissful scaffold
#

welp, we tried

modest maple
#

welp

#

some people are just scum ig

marble juniper
#

I don't get why people think this server is a support server for every bot

#

the button is litterally there

#

how can you miss it

earnest phoenix
#

low iq-ism

dull terrace
#

How can reading the OOP help me understand my mistakes?

modest maple
#

because you will know how df objects work

#

and understand

#

where df your going wrong

#

but i think me and tim have came to an end in just how many time we're gonna let you keep going "is this it?" "is this it?" "is this it?" "is this it?" "is this it?""is this it?"

dull terrace
#

Well uh I asked you nothing, if it annoys you just have to tell me.

#

I will read the OOP, follow Tim's advice but will not stay there except to validate my bot

earnest phoenix
#

oop is a concept, it isn't something you can read lol

#

there are guides on it

modest maple
#

you NEED to understand it

dull terrace
#

Look*

modest maple
#

that why you are getting it wrong

dull terrace
#

Yes

modest maple
#

because you dont understand how it works and how the docs label it

#

tim doesnt even do python and he can tell

#

xD

dull terrace
#

Maybe, but don't get angry and tell me when something is bothering you

modest maple
#

im not angry

#

im just saying

#

you need to learn the basics

topaz fjord
#

he's staying facts

#

mother fucking

#

fuck

#

English

dull terrace
#

On this I will try to understand OOP and avoid writing in this room

topaz fjord
#

Please work

modest maple
#

"the oop" xD Thonk

dull terrace
#

Yes this

tiny tinsel
#

@modest maple "POOP"

topaz fjord
#

no

modest maple
#

Proper Object Oriented Programming

topaz fjord
#

that ain't funny

tiny tinsel
#

@topaz fjord Ok 😦

dull terrace
#

turtle work what?

topaz fjord
#

I'm talking about how my English won't work

#

Stupid mobile keyboard

dull terrace
#

Ah ok

#

Just you are French?

tiny tinsel
#

I am.

quartz kindle
#

you still didnt manage to make it work? in my last message i literally showed you exactly what you need to write lol, in that red square in the image

tiny tinsel
#

@quartz kindle Weren't you the one helping me with attachments last day?

dull terrace
#

This?

quartz kindle
#

yes

topaz fjord
#

@quartz kindle it didn't have enough arrows

quartz kindle
#

adds more arrows

tiny tinsel
#

@quartz kindle You know what was not working? It was due to spaces in the image file.

dull terrace
#

I read, and I test

tiny tinsel
#

I didn't know that was a thing.

dull terrace
#

Not work

quartz kindle
#

spaces in the image file should not be an issue?

tiny tinsel
#

@quartz kindle Well as soon I removed all the spaces It did work.

#

🤷‍♂️

quartz kindle
#

¯_(ツ)_/¯

dull terrace
#

I'll do some tests tomorrow, I don't have my computer there

earnest phoenix
#

spaces aren't an issue

#

it's just that discord replaces the space chars with underscores

#

so when you upload an image with spaces locally, in the attachment reference it'll have underscores instead of the spaces

quartz kindle
#

ah i thought he was talking spaces on the file name on disk

tiny tinsel
#

@earnest phoenix Well. As soon I removed every spaces It started working.

earnest phoenix
#

re-read what i said

tiny tinsel
#

Oh oh.

#

I didn't know It replace spaces with underscores. If only I knew. I just removed spaces instead so 🤷‍♂️

sage bobcat
#

One message removed from a suspended account.

quartz kindle
#

have you checked the documentation?

sage bobcat
#

One message removed from a suspended account.

quartz kindle
#

are you talking about node.js?

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

quartz kindle
#

oh

#

because fs is also node.js's filesystem module

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

quartz kindle
#

yeah i see, i thought you were talking about node's fs, thats why i asked about the documentation

#

i've never used f#

sage bobcat
#

One message removed from a suspended account.

topaz fjord
#

f#

ruby talon
#

Definitely becoming a front end developer... 😂

#

Y can't I do front end properly? ghaha

quartz kindle
#

front end is nightmare

ruby talon
#

I fk agree

sage bobcat
#

One message removed from a suspended account.

topaz fjord
#

leave

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

ruby talon
#

sad

#

😦

quartz kindle
#

its even more nightmare when you dont use any js or css framework

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

ruby talon
#

Lmao

#

haha

sage bobcat
#

One message removed from a suspended account.

quartz kindle
#

if you can get away with pure html, thats great

sage bobcat
#

One message removed from a suspended account.

quartz kindle
#

none of my projects can get away with pure html

sage bobcat
#

One message removed from a suspended account.

quartz kindle
#

i say project because they are never really "finished"

#

even the simplest websites

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

quartz kindle
#

yeah

ruby talon
#

Tim

#

You can't do worse than me

#

I just created a hell for ur eyes

#

xDD

#

And its for a project for school lol

quartz kindle
#

lul

ruby talon
#

😂 😂

quartz kindle
#

it cant be worse than govind tiwari

ruby talon
#

Teacher going to hate me ayy

quartz kindle
#

from alahabad

ruby talon
#

Send the web

#

pls

#

I want to die

quartz kindle
ruby talon
#

Oh

#

timing lol

#

Hahaha

quartz kindle
#

scroll down and press these

#

(only works on a desktop)

eternal adder
#

I'll be requesting to have my bot listed here soon, I'm happy aha

quartz kindle
#

congrats

ruby talon
eternal adder
#

What languages do you all prefer?

tiny tinsel
#

English

earnest phoenix
#

English

ruby talon
#

Tim, I cant't find those buttons.

#

Dutch is bae tho

eternal adder
#

I meant programming languages, in terms of creating a bot

ruby talon
#

¯_(ツ)_/¯

earnest phoenix
#

css

ruby talon
#

html

tiny tinsel
#

Fortran 95

ruby talon
#

or minecraft command blocks

earnest phoenix
#

brainfuck

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

txt

eternal adder
#

The most legitimate response yet aha @earnest phoenix

ruby talon
earnest phoenix
#

jsfuck is legit though too

ruby talon
#

lmao

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

sadly css is too

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

css isn't a programming one though

sage bobcat
#

One message removed from a suspended account.

tiny tinsel
#

@ruby talon Wow that's wrong you should use &nbsp;

earnest phoenix
#

neither is html

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

im very aware

#

wrote a brainfuck interpreter once in c#, it was genuinely fun and surprisingly not that hard

ruby talon
#

Isn't even my web xDD
And wadeheck is &nbsp lol

#

xDD

earnest phoenix
#

html char code for a space

sudden geyser
#

css error messages

ruby talon
#

Ty

#

I didn't know that. ^^

tiny tinsel
#

Imaging using only &nbsp; to do spaces instead of using css.

earnest phoenix
#

^

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

i removed it

ruby talon
#

It poofed away

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

im making a better one

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

i didnt start working on it

tiny tinsel
#

<p>Hello&nbsp;&nbsp;&nbsp;World</p>

earnest phoenix
#

.>

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

on node?

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

oh

#

nah

#

i read some of the docs

#

it's weird

#

it feels wrong

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

i know

#

it borrows a lot of practices from other languages

#

it does look really good though

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

tiny tinsel
#

@eternal adder On a serious note personally It is C#

sage bobcat
#

One message removed from a suspended account.

ruby talon
eternal adder
#

nice @tiny tinsel

earnest phoenix
#

typescript superior

ruby talon
#

Btw very mobile proof

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

quartz kindle
#

im a javascript guy, because all other langs take too much effort to learn and use

#

and im lazy

tiny tinsel
earnest phoenix
#

typed langs >>>>>

ruby talon
#

oof

sage bobcat
#

One message removed from a suspended account.

tiny tinsel
#

@ruby talon It ain't that bad just colors doesn't match at all.

earnest phoenix
#

does anyone have a link to the github page with that css discord bot monstrosity

#

I can't seem to find it

ruby talon
#

@ruby talon It ain't that bad just colors doesn't match at all.
@tiny tinsel Wich colors?

hoary elm
#

Can someone please point me in the direction of a guide for setting up multi language support (IE: English, French ect)

earnest phoenix
#

@ruby talon consider using something like readthedocs

sage bobcat
#

One message removed from a suspended account.

tiny tinsel
#

@ruby talon Yellow, Red and blue

ruby talon
#

@earnest phoenix I can't, its for a school project and needs to be a fully self build web.

earnest phoenix
#

oof

#

yeah

#

you should work on colors

ruby talon
tiny tinsel
#

@ruby talon Also under API Reference It feels blank.

earnest phoenix
ruby talon
#

@tiny tinsel you mean there should be more content there or?

tiny tinsel
#

@ruby talon No. Just not plain text.

#

I don't know a box or something.

ruby talon
#

:?

tiny tinsel
#

A card if you prefer.

#

Just not plain text on the body.

ruby talon
#

Oh

tiny tinsel
#

And change font too.

ruby talon
#

And embed the whole content in the card?

tiny tinsel
#

Yeah.

#

And use your imagination for the rest.

#

But it is up to you.

#

You do you.

#

Just a suggestion.

ruby talon
#

Aight

#

Thx bro's ^^

tiny tinsel
ruby talon
#

Aight

#

I'll implement that.

tiny tinsel
#

There is monsterrat that looks nice too.

quartz kindle
#

@hoary elm create a database of texts and translations mapped by an id

#

then replace all texts in your code with the ids, and get it from the database based on the language choice

hoary elm
#

Ohh okay seems simple 😂😂 thanks 😁

ruby talon
#

Roboto reads better. ^^

hoary elm
#

🤔

tiny tinsel
#

Yeah It is commonly used.

#

Also another suggestion would be full height sidebar.

ruby talon
#

Aight

fallow mango
#

@client.command()
async def commands(ctx):
await ctx.send('rr! ban, rr! unban, rr! purge, rr! kick, rr! 8ball, rr! ping, rr! tictactoe, rr! prefix')

#

any better way to make a list?

earnest phoenix
#

didn't you already ask that

fallow mango
#

i need to know how to make a better list?

earnest phoenix
#

...just make it?

#

embeds

#

@peak ivy 5 what

peak ivy
#

servers

earnest phoenix
#

your client cached the image

#

append a cache breaker to the url

peak ivy
#

ohh

marble juniper
#

guys how do I make my bot send lol in discord.js

#

best way I found was this

#
let o = (true+[]["fill"])[10]
let l = (false+"")[2]
message.channel.send(l+o+l)
ruby talon
#
command_list = ["ban", "unban", "purge", "kick", "8ball", "ping", "tictactoe", "prefix"]

@client.command()
async def commands(ctx):
    await ctx.send(f"My commands:\n{', '.join(['`' + ctx.invoked_with + cmd + '`' for cmd in command_list])}!")

@fallow mango I think this is a better way.

fallow mango
#

ok thank you ill try it

ruby talon
#

But might wanna use COG's for your projects, makes some stuff easier and cleaner. ^^

fallow mango
#

ok ill read it

ruby talon
#

And I think I'm going to stay with this color scheme, even tho it burns your eyes xD

fallow mango
#

@ruby talon i tried the command you suggested me and at the begining it said 'commandsban' for the ban command

ruby talon
#

Only for the ban cmd?

#

What is your bot prefix?
Bcs it should display the used prefix.

tiny tinsel
#

@ruby talon Now you could split every references into their own cards.

ruby talon
#

Will do.

#

I'll put the groups in a card 2.

tiny tinsel
#

@ruby talon Also padding-bottom to the cards.

quartz kindle
#

looks nice on an iphone

tiny tinsel
fallow mango
#

@ruby talon it said it for all commands. my prefix is 'rr! '

tiny tinsel
#

And overflow hidden to not show the scrollbar on resize 😛

#

for the pres*

#

Other than that It is starting to get somewhere.

ruby talon
#

Nathan, only added that on the API refference.
The space between those things is bcs its a different section.

fallow mango
#

@ruby talon it said it for all commands. my prefix is 'rr! '

tiny tinsel
#

@fallow mango Just use bot.prefix or whatever It is in python.

ruby talon
#

I personally prefer the scrollbar bcs its doesn't f*ck up the code with thos thingus.

fallow mango
#

@tiny tinsel ```py

client = commands.Bot(command_prefix = 'rr! ')```

ruby talon
#

@ruby talon it said it for all commands. my prefix is 'rr! '
@fallow mango

command_list = ["ban", "unban", "purge", "kick", "8ball", "ping", "tictactoe", "prefix"]

@client.command()
async def commands(ctx):
    await ctx.send(f"My commands:\n{', '.join(['`rr!' + cmd + '`' for cmd in command_list])}!")

This is if you have a static prefix.

fallow mango
#

i probably dont have that then

tiny tinsel
#

I wouldn't put the prefix directly in the command.

#

I'd make a rr!help {command}

fallow mango
#

that means add lots more commands

ruby talon
#

For my bot I fetch it from a db and if none found it returns the default one.

#

i probably dont have that then
@fallow mango I updated the code, now its hard coded rr!.

tiny tinsel
fallow mango
#

thank you arthur

#

i dont know how to do that @tiny tinsel

ruby talon
#

Nathan, do you also do this?

For my bot I fetch it from a db and if none found it returns the default one.

tiny tinsel
#

@ruby talon No because It is hardcoded to be apx! for now.

ruby talon
#

Oh

#

sadness level rises xD

tiny tinsel
#

I will eventually do it.

#

@ruby talon But I don't see the use for it. I could add aliases. It is not a bot for administration or anything..

fallow mango
#

@ruby talon do you know how to make commands into a list type thing going like ```py

ban
unban
ping

etc ```

tiny tinsel
#

So there won't be a ton of "settings".

ruby talon
#

@fallow mango if you ever change the prefix, just change the 'rr!' in the code.

fallow mango
#

ok

#

with the color border

#

like when u mention somebody

tiny tinsel
#

Embed your message.

ruby talon
#

@ruby talon do you know how to make commands into a list type thing going like ```py

ban
unban
ping

etc ```
@fallow mango

mylist = ['ban', 'unban', 'ping']
return "\n".join(["`" + item + "`" for item in mylist])
fallow mango
#

?

#

dont understand

ruby talon
#

@ruby talon But I don't see the use for it. I could add aliases. It is not a bot for administration or anything..
@tiny tinsel You do you m8.

fallow mango
#

the way i have my commands setup this confuses me

tiny tinsel
#

@ruby talon smirk

fallow mango
#

@fallow mango

mylist = ['ban', 'unban', 'ping']
return "\n".join(["`" + item + "`" for item in mylist])

@ruby talon

ruby talon
#

Uhu.

fallow mango
#

the way i made my commands confuses me with that.

quartz kindle
#

there are a million different ways to organize your commands, you dont need to follow specifically what someone else does

#

there are many different ways you can automate it as well

fallow mango
#

im trying to find away to make a list of commands like when i do a prefix

#

r! help

#

r!help

#

i get bdmed

#

dm'ed**

#

and there is a good command list

#

with a colored sidebar

quartz kindle
#

thats called an "embed"

#

check your library documentation on how to use embeds

fallow mango
#

ok

quartz kindle
#

or you can code an embed literally

#

its basically a json structure

fallow mango
#

so i have to make a json file now?

ruby talon
modest maple
#

no

quartz kindle
#

you can see how it works here

fallow mango
#

ok

quartz kindle
ruby talon
fallow mango
#

@quartz kindle i use pyhton

#

python**

modest maple
ruby talon
#

@modest maple aSyNc ?-?

modest maple
#

the embed creation is still the same

ruby talon
#

¯_(ツ)_/¯

modest maple
#

just change the sending part

ruby talon
#

I created an emb func so just gotta write **em() for an embed. 🧠

earnest phoenix
#

big brain time

ruby talon
#

@fallow mango if you want to send an embed from JSON use discord.Embed.from_dict(contents)

#

@earnest phoenix I'm brainmaster69

tiny tinsel
#

I'm robloxkid69

ruby talon
#

Haha

#

And I put the header and menu on fixed

tiny tinsel
#

@ruby talon 👍 Way better now

ruby talon
#

Thx for helping me. ^^

#

:))

#

I'm going to sleep tho.

#

Gn everyone. ^^

tiny tinsel
#

Something like this would look nice.

fallow mango
#

why is their 0 re-write tutorials on Youtube for embeds? the documentation confused me.

quartz kindle
#

then just use the embed json, its universal, the same in all languages and libs

ruby talon
#

@tiny tinsel I'll look at that tmrw

modest maple
#

@fallow mango look at the link i sent

ruby talon
#

^^

modest maple
#

that helps you generate embeds

fallow mango
#

send link again please

modest maple
fallow mango
#

ok and is it async? im using re-write to encounter less errors and bugs

modest maple
#

re write is the only working d.py version now just fyi

#

and the sending part is async

#

but the rest of it hasnt changed for rewrite

#

just use the embed part and ignore the self.bot.say(xyz)

fallow mango
#

ok

modest maple
#

just use functiontosendstuff(embed=embed)

fallow mango
#

instead?

#

of self.bot.say(xyz)

modest maple
#

yh

fallow mango
#

the url part is a picture that will show?

modest maple
#

if you want it to send an image aswell yes

fallow mango
#

ok

#

what does it mean by author link?

modest maple
#

like if you want to show the user's avatar as a little icon uptop

#

the link is for the user's avatar url

fallow mango
#

and the authors link?

#

@modest maple ^

quartz kindle
#

if you set an author url, you can click on the author and it will open the url

modest maple
#

dw about it for now

#

you dont need it for it to work

#

just dont do embed.set_author

fallow mango
#

ok

#

how do import the code now?

modest maple
#

copy the code at the bottom

fallow mango
#

ok

#

i need it for my command list

modest maple
#

but just replace the bot.say with the rewrite version

fallow mango
#

ok how do i make it my command list now?

flat pelican
#

by reading docs

#

secret formula

summer torrent
flat pelican
#

Using embeds is pretty simple once you get how the basic stuff works

#

Check code examples on the doc, on GitHub

#

You have a thousand of way to learn

fleet chasm
#

tutorial and the richembed docs 🤤

flat pelican
#

You have embed generators on the net, check them out

fallow mango
#

can i just watch a tutorial on people making embeds then import my code?

grizzled raven
#

what

modest maple
#

no

#

like embed's r not hard

summer torrent
#

@fallow mango which library do you use

fallow mango
fleet chasm
#

oh that

#

that docsthen

summer torrent
modest maple
#

no

#

dw about author stuff rn

#

just

#

send a basic embed

#

with a title

#

description

#

and set colour

#

thats it for now

fallow mango
#

wym

#

error

#

how fix

modest maple
#

by reasing the docs

#

reading*

#

make a basic embed first

#

how bout that

fallow mango
#

will it work without embed.set_author?

#

something isnt working

modest maple
#

yes

prime cliff
#

name="TechTime#9645",, why do you have 2 ,

fallow mango
#

it came with that

modest maple
#

he has alot of things wrong

prime cliff
fallow mango
#

@client.command()
async def embed(ctx):

    embed=discord.Embed(title="Commands", url="https://cdn.discordapp.com/attachments/385837258768515083/669305695719391258/2a08e15674cae50c20bd5ae2c1656656d8713575c04ef1b83bb0247a4d084cbe.jpeg", description="These Are My Commands You Dumb Nut! Lol.", color=0x00ffff)
    embed.set_author(name="TechTime#9645",, icon_url="https://cdn.discordapp.com/attachments/385837258768515083/669305695719391258/2a08e15674cae50c20bd5ae2c1656656d8713575c04ef1b83bb0247a4d084cbe.jpeg")
    embed.set_thumbnail(url="https://cdn.discordapp.com/attachments/385837258768515083/669305695719391258/2a08e15674cae50c20bd5ae2c1656656d8713575c04ef1b83bb0247a4d084cbe.jpeg")
    embed.add_field(name="rr! ban", value="rr! ban @example ", inline=False)
    embed.add_field(name="rr! unban", value="rr! unban @example", inline=False)
    embed.add_field(name="rr! ping", value="Shows The Bots Ping", inline=False)
    embed.add_field(name="rr! 8ball", value="rr! 8ball (question)", inline=False)
    embed.add_field(name="rr! tictactoe", value="rr! tictactoe (X or O) if the bot says X aand you say X he wins. If you say O and he Says O he wins. meaning You say O he say x you win. You say X he say O you win.", inline=False)
    embed.add_field(name="rr! commands", value="shows the command list", inline=False)
    embed.add_field(name="rr! kick", value="rr! kick @example", inline=False)
    embed.add_field(name="rr! prefix", value="if your typing a command, always use the prefix "rr! " dont forget the space after it.", inline=True)
    embed.set_footer(text="Generated By Roddy Ricch")
    await functiontosendstuff(embed=embed)```
modest maple
#

omfg

#

when i did

#

functiontosendstuff(embed=embed)

#

i didnt mean

#

fucking copy it

#

i ment use what you would normally use

#

jesus dude dont copy and paste

prime cliff
#

Generated By Roddy Ricch

fallow mango
#

lol

#

my bots name ir roddy ricch

#

is**

modest maple
#

👏 dont 👏 copy 👏 paste 👏 what 👏 i 👏 send 👏

fallow mango
#

oh no

#

ok

#

how fix

modest maple
#

remove it

#

embed = discord.Embed(title="stuff", description="stuff", color=somecolourstuff)

#

thats all you need

#

for a basic embed

fallow mango
#

i need a command list

#

a good one

#

how good peoplw make ot

modest maple
#

then make a text block

fallow mango
#

i do that but its not cool

modest maple
#

and i dont have any issues

earnest phoenix
#

Hello

fallow mango
#

mine usually looks like this

#

command, command, command, command

#

their

#

simple

modest maple
#

yh

fallow mango
#

but its not good enough

modest maple
#

well then listen to what ive told u

#

and use a text block and description

fallow mango
#

slaps my head

#

I mean to make it look cool

modest maple
#

how do you fucking think it works

fallow mango
#

how do i make it stop showing errors

modest maple
#

by not fucking copying

#

and listen to what i say

#

zero errors

#

because i read

fallow mango
#

why website look so simple then and documentation seem so complicated?

modest maple
#

ffs

fallow mango
#

fine

#

ill read

modest maple
#

because docs are ment to be detailed

#

so you know what the lib fucking does

fallow mango
#

i found the problem

#

i had an invalid syntax

#

and its fixed

#

i just need to fix this part ```py

await nonexistent(embed=embed)```

#

i figured out that

#

await functiontosendstuff(embed=embed)

#

was an example

#

not literal

modest maple
#

👏 👏

fallow mango
#

lol

#

oh i got it

#

just get send from a yt vid rq

#

await ctx.send(embed=embed)

#

await ctx.send(embed=embed)```
#

their

modest maple
fallow mango
#

IT works!

#

Yay

#

me happy now

#

time to make it my command list

#

thank you @modest maple

#

and when i activate my bot, does it go live in every server the bot is in? Just wondering. Ive been testing it in my test server

#

and when i activate my bot, does it go live in every server the bot is in? Just wondering. Ive been testing it in my test server
@modest maple

modest maple
#

if your bot is online for you its online for others

#

unless youre sharding

fallow mango
#

ok just checked your right

#

thank you for the help

blissful scaffold
#

most people use 2 versions of a bot, one private bot for testing new updates and one that is always online and is public for other servers

fallow mango
#

-bots @fallow mango

gilded plankBOT
blissful scaffold
#

your bot isn't approved yet tech

fallow mango
#

ik

#

just looking

#

should i have a test for the bot?

#

test bot**

blissful scaffold
#

I would do it when the bot is also used in other servers

fallow mango
#

im slowly doing it

#

like

#

next week will be nect update

#

next*

#

and i debug my code in a test server

#

its just less work for me

#

My opinion

blissful scaffold
#

Just get 2 bot tokens and use one token for testing and the other token for the stable/public bot

fallow mango
#

hmm ill consider it

marble juniper
#

make a private server use a second bot and test the stuff with that bot

fallow mango
#

is their any other way to launch a bot without a bat file?

#

@blissful scaffold ^

blissful scaffold
#

My bot runs on Linux so I cant really help you with that

fallow mango
#

oof

#

i wish i had premium so my bot could be verified but i has no money

blissful scaffold
#

my bot is also not verified

fallow mango
#

how u got green name

outer niche
#

AttributeError: module 'discord' has no attribute 'ChannelPermissions' how can i fix that

fallow mango
#

hmmm

#

im pretty sure the module has nothing of that

prime cliff
#

discord i assume is your discord client not a discord guild

fallow mango
#

u using async?

#

and how do i get green name?

blissful scaffold
#

@fallow mango you get a green name when your bot is approved

fallow mango
#

mine not approved 😦

outer niche
#
async def addchannel(ctx, channel: str=None):
    server = ctx.message.guild
    if channel is None:
        await bot.say("Please specify a channel name")
    else:
        if ctx.message.author.guild_permissions.administrator == False:
            await bot.say('**You do not have permission to use this command**')
            return
        else:
            everyone_perms = discord.PermissionOverwrite(send_messages=None, read_messages=None)
            everyone = discord.ChannelPermissions(target=server.default_role, overwrite=everyone_perms)
            await bot.create_channel(server, channel, everyone)
            await bot.say("{} channel has been created.".format(channel))```
fallow mango
#

bot.say is from async

#

you need rewrite

#

ctx

#

is what you need

#

im pretty sure

#

look at the docs

outer niche
#

so bot.send

fallow mango
#

ctx.send(whatever it is u put)

#

ctx.send instead of bot.say

#

bot.say is from ASYNC

outer niche
#

kk

#

oof

#

AttributeError: module 'discord' has no attribute 'ChannelPermissions' what about this

fallow mango
#

make the C into a c

#

and anyone know how to make a bot status command?

#

.py obviously

outer niche
#

yes

#

dm me

fallow mango
#

ok

#

how long it take to get a bot approved?

blissful scaffold
#

around 2 weeks

fallow mango
#

😮

blissful scaffold
#

there is a huge queue and not that many mods

fallow mango
#

so it gets declined for garbo description in 5 hours but 2 weeks for no decline

#

???

#

logic?

#

CONFUSION?

blissful scaffold
#

they sometimes scan the list to decline bots that have obvious problems so the dev can fix it

outer niche
#

Command raised an exception: AttributeError: module 'discord' has no attribute 'channelPermissions'

blissful scaffold
#

but the bot only gets approved after they have tested the bot on another server

fallow mango
#

oh

modest maple
#

@outer niche you cannot do discord.channelpermissions

#

Learn to read the docs

#

Like you've been told several times befote

fallow mango
#

isnt that async??

modest maple
#

No

fallow mango
#

hmm

#

bot.say is though right?

modest maple
#

Yes

fallow mango
#

oik

#

ok**

#

wish my bot could get approved nowwwwwwww. BUT I MUST HAVE...

#

PATIENTS*

modest maple
#

Good for you

fallow mango
#

-_-

#

NANI

blissful scaffold
#

keep an eye on #mod-logs and make sure you dont make the same mistakes ^^

fallow mango
#

ok

blissful scaffold
#

it gives you 2 weeks to make your bot and application even better, just make sure it isnt offline

fallow mango
#

ok

#

time to make it music bot to

#

time to edit embeds now tooooo.

#

YAYAYAYAYA

modest maple
#

I would hold off on the music bot bit till you learn how to read docs a bit better

#

And learn a bit more on how OOP works

fallow mango
#

oh ive made music bots before

#

and i read some docs

#

i think im ready to add music commands

#

actually. your right

#

im going to make a level up system and more fun commands

modest maple
#

You know how to use some sort of dB?

fallow mango
#

json

#

wym dB

#

im new to leveling system

#

but ima try to make some fun commands

#

i now have 8ball, tictactoe, and coinflip

modest maple
#

Don't use json

#

Use a db

#

Like sqlite would be a good starter db

blissful scaffold
#

also make sure you can disable the leveling system for some servers, else your bot will get muted here

fallow mango
#

ik im not doing leveling anymore

modest maple
#

Changed Ur mind quick

fallow mango
#

yeeeep

#

know any better way to run the bot instead of using a bat file WINDOWS USERS

modest maple
#

I mean python doesnt use and exe to run

#

But running python with the base IDE exe is about the least system intensive thing overall

#

And less reasorces tend to be better unless speed

#

But that's subjective

blissful scaffold
#

I think windows still accepts .com files 😛

modest maple
#

XD

blissful scaffold
#

but it's worse than bat

quartz kindle
#

convert your bat to exe

#

with a bat2exe converter

#

lul

fallow mango
#

is that easier?

modest maple
#

No

quartz kindle
#

its the same thing

modest maple
#

Don't even thing about trying to convert your bot to an exe

fallow mango
#

ik

modest maple
#

I don't wanna live through you dealing with the errors

fallow mango
#

ive converted my bat calculator to exe before

#

ik what im doing

modest maple
#

Just double clicking the main python file should run it fine

fallow mango
#

ik

blissful scaffold
#

or create a jar file that will start your bot Kappa

modest maple
#

XD

blissful scaffold
#

a bat file or just clicking the python file is probably the easiest

fallow mango
#

i run it using a .bat file that says ```bat

@echo off
py bot.py
pause```

modest maple
#

That just opens the bot.py file

#

Might aswell just double click the bot.py file

#

Does the same thing

fallow mango
#

😮

#

i didnt notice

#

lol

#

lol

modest maple
#

Unlrsd you're like me and has to start up multiple servers and clients then a bat is sometimes easier

quartz kindle
#

there was an old game, GunZ: The Duel, it needed to run 3 files for the server to work

fallow mango
#

i mean bat file is easy and your bot stays online until the bat terminal (command prompt) has an error

quartz kindle
#

it was really shitty coded

fallow mango
#

ooooof

modest maple
#

I put all my logs to a console server

#

So I can see them from anywhere as long as I'm connected with the creds

#

Sometimes good for debugging

blissful scaffold
#

i save my logs to a log file

fallow mango
#

as i said bat file is really simple or just drag your main bot file to command prompt and run it

#

but anyone know how to make a command that show the bots info like its creator, its library, etc.

prime cliff
#

You don't really need help with that it's just an embed and text :/

quartz kindle
#

the same way you make any other command

fallow mango
#

oh ok

#

VIEWS FILE*

fiery stream
#

Hey

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

fallow mango
#

my bot is 507.8 MB

#

with 108 lines of code

#

wow

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

blissful scaffold
#

507.8 MB in file size, or ram?

earnest phoenix
#

I'd hope ram if anything

blissful scaffold
#

my bot uses as much ram as I give it
at the moment I allow it to use 2GB and I have seen it use more than 1GB before running a garbage collection

earnest phoenix
#

my bot uses ~70-80mb give or take

fallow mango
#

file size ;?

#

yeah ik :/

west raptor
#

do you mean file size or RAM

sudden geyser
#

in ram mine uses ~9 mb

fallow mango
#

file size 507.8 MB

sudden geyser
#

what

west raptor
#

how

fallow mango
#

yes that what i said

sudden geyser
#

how did you pull that one off

fallow mango
#

lots of embeds most likely

west raptor
#

uh no

fallow mango
#

then what??

#

i must know

#

I MSUT KNOW

sudden geyser
#

I doubt your file is 500+ mb

west raptor
#

because the largest file (in terms of line count) on my system that's mine that's like 200 lines is 8K

#

@fallow mango where are you getting this information

blissful scaffold
#

you included everything to start your computer and being able to run the bot? :P
I think windows is bigger than 500MB

fallow mango
#

it is

#

wayyyyyyyyyyyyyyyyyyyy bigger

blissful scaffold
#

do you have some massive log files?

west raptor
#

ok but

#

where are you getting this information

#

and can you screenshot it

blissful scaffold
#

maybe it's 507KB

west raptor
#

possibly

fallow mango
#

ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

#

i thought i saw MB

west raptor
#

.-.

blissful scaffold
fallow mango
west raptor
#

still tho

#

that kinda big

fallow mango
#

thats what she said

#

🙂

west raptor
#

damn bro

#

i laughed

blissful scaffold
#

that is 500,000 characters of code if you have nothing else in your bot folder

fallow mango
#

oh its 6kb

#

oops

west raptor
#

???

blissful scaffold
#

wtf

fallow mango
#

i have a .bat file in it to

west raptor
#

how did you get 507 from fucking 6

blissful scaffold
#

how do you confuse 6KB with 507KB with 507MB?

fallow mango
#

it was 5 for a moment then someone said 507

#

and it convinced me somehow

west raptor
#

im so confused

fallow mango
#

so am i

blissful scaffold
#

6kb sounds about right i guess

fallow mango
#

||Noice||

#

are the mods going through bot submissions everyday?

blissful scaffold
#

yes, you often see a group of declined bots in #mod-logs when a mod is going through submissions

#

just look for all the blue embeds there

earnest phoenix
#
4|index  |     at Configuration.run (/root/AtlantaBot/commands/Administration/configuration.js:26:43)
4|index  |     at module.exports.run (/root/AtlantaBot/events/message.js:238:17)
4|index  |     at processTicksAndRejections (internal/process/task_queues.js:97:5)
4|index  | TypeError: message.language.get is not a function
4|index  |     at Configuration.run (/root/AtlantaBot/commands/Administration/configuration.js:26:43)
4|index  |     at module.exports.run (/root/AtlantaBot/events/message.js:238:17)
4|index  |     at processTicksAndRejections (internal/process/task_queues.js:97:5)
4|index  | [2020-01-21 17:36:50.947]: CMD Fusion Gamingᴬˡᵖʰᵃ ᴮᵒᵗ ᵈᵉᵛ⚒ (567628466569347082) ran command ping```
#

y i am getting this error

blissful scaffold
#

message.language.get is not a function

earnest phoenix
#

i have make it in a function

summer torrent
#

read the error

earnest phoenix
#

i read that

fallow mango
#

its not a function

#

did you make it yet?

#

i dont know much about js.

coral trellis
#

@earnest phoenix Where are you defining it as a function

fallow mango
#

waits for bot to get verified

blissful scaffold
#

@fallow mango I think people have been muted for that in the past 😛

sudden geyser
#

@earnest phoenix are you possibly using Klasa.

sage bobcat
#

One message removed from a suspended account.

earnest phoenix
#

whats klasa

#

??

tiny tinsel
#

@fallow mango Wanna get instantly verified?

#

@fallow mango There is something called DBL Premium.

earnest phoenix
#

@tiny tinsel its fake

#

its directly send to YouTube channel

#

stop promoting

west raptor
#

That's.. the point

earnest phoenix
#

if their was a premium top.gg then they will announce that

west raptor
earnest phoenix
#

^

#

I dont think the poor man understands

zealous veldt
#

@tiny tinsel Do not mislead people asking for help in this channel.

blissful scaffold
#

How is it promoting if it is fake?

quartz hill
#

How can I expect the result async func without using await? nodejs

sudden geyser
#

If you mean tell what the function will resolve into, you can't really. You can use .then(), but it works like await.

cloud sky
#

Do you guys think I should add a feature request to my bot?

steel cloak
#

in the Eris library how do you get the bot info? like the bot's id and username. kinda like in Discord.js where you can do client.author.username

vital lark
#

@steel cloak it would be client.user

steel cloak
#

that returns ExtendedUser and the properties aren't there tho?

vital lark
#

@steel cloak it still extends the user base class

steel cloak
#

ahh okay thanks a lot! wasn't aware that's how that worked lol. Have a nice day!

vital lark
#

you too

eternal adder
#

I'd have to change the prefix to use my bot here, right?

#

Once I apply to have it here that is

earnest phoenix
#

you can use any prefix

#

if it's a common one it'll get muted

wintry tapir
#

How do I do sharding

#

Jk I’ll find out somewhere

lofty vine
#

hi

#

how do ye do a dbl vote webhook on glitch?

modest maple
#

Like you would any normal system but port has to be 3000

#

It was either 3000 or 5000

lofty vine
#

doesn't seem to work for me 😦

#

do I need to keep my project public?

slender thistle
lofty vine
#

ye

#

Thanks!!!!!

#

its worksss!!!!!!!!!!!!!!!!!

open dagger
#

I need one developer can help me for make a bot for my friend server.. Please

west raptor
#

This is not the place to hire

eternal adder
#

@open dagger I'll help:

  1. Learn some python. You may choose another language, but I personally recommend python as my balances difficulty and capability well.

  2. Install discordpy, or if you've chosen another language, then install the discord library for it.

  3. Read through the relevant documentation, and bot quick-start guides.

open dagger
#

Yes I know but I not have my pc for 6 month

#

I'm out for work and for this I search for people give me help and not go direct to program on py

quartz kindle
#

so basically you want someone to do it for you

eternal adder
#

Use an online ide such as replit. @open dagger

open dagger
#

Yes @quartz kindle ahahah

mossy vine
#

@open dagger pay someone

open dagger
#

If price it is nice not is a problem but yes I'm not stupid ahah

earnest phoenix
#

nino help

#

ninohelp

slender thistle
modest maple
#

@eternal adder I would not nessesarily describe python as easier than other Lang's, it's easier at the start but saying it's easier when making a discord bot can be very subjective

#

Python and bot making tends to make people overthink how easy it's gonna be and skip learning basic principles that other Lang's force upon you

#

Just because its syntax is simpler at the start doesn't make it a better starting choice

fallow mango
#

is it possible to make a discord bot using Discord.py and Discord.js? or am i crazy

mossy vine
#

actually yes

stiff stratus
#

both at the same time?

mossy vine
#

several scripts can run under a bot account at the same time

fallow mango
#

oh my god

#

so many ideas

earnest phoenix
#

it's not suggested though

#

their internal ratelimit handlers will go out of sync really quickly

slender thistle
#

The API ones?

earnest phoenix
#

yes

slender thistle
#

If handled properly that shouldn't be a problem

earnest phoenix
#

(that is if you're using the same token on both apps)

fallow mango
#

thats why i have a test bot that im testing (people said thats a smarter thing to do) and the real bot that will get the code in its file if i receive 0 errors

modest maple
#

How bout you learn basic python before moving onto a different lib xD

blissful scaffold
#

There is almost never a good reason to mix languages and libraries for a bot, most libraries can do the same things

mossy vine
#

unless your bot is built on microservices maybe

blissful scaffold
#

Yeah, but that is pretty advanced and I don't think you need development help here if you use microservices

modest maple
#

Even then

#

It's not worth