#development

1 messages ยท Page 313 of 1

bitter sundial
#

oh ok

faint jetty
#

it's simple to install tho

earnest phoenix
#

I see that the api is all just js, so no py?

faint jetty
#

huh

green monolith
#

hi

surreal peak
#

C# is for the real bot devs ๐Ÿ˜

fossil oxide
#

Lool

#

We don't need your jokes here

sterile trail
#

wew

dawn robin
#

guys

lusty cradle
#

ok

fossil oxide
#

Groot

lusty cradle
#

i am

earnest phoenix
#

no me

lusty cradle
#

no panda

earnest phoenix
#

@fossil oxide how do you make discordie embeds?

fossil oxide
#

It's in the API docs

forest sparrow
#

@earnest phoenix sample codejs channel.sendMessage("", false, { color: 0xFF8700 //sidebar colour, title: "text here" });

#

isnt the most cleanest example

earnest phoenix
#

K

surreal peak
#
var emb = new EmbedBuilder().WithTitle("Title").WithColor(new Color(255,0,0));
Evaluated.
#
Title
forest sparrow
#

@earnest phoenix did it work for you

earnest phoenix
#

@forest sparrow haven't tried it

forest sparrow
#

k

#

but it will work i use it for my bot

pliant kernel
#

can someone tell me how to get ping in ms cause i always get minus answers

fossil oxide
#

xD

#

How are you managing that?

#

What language are you using?

pliant kernel
#

js

fossil oxide
#

lib?

pliant kernel
#

DiscordJs

fossil oxide
#

rip

pliant kernel
#

i'm currently testing to get ping to not be minus lol

shy tuskBOT
#

Hi currently testing to get ping to not be minus lol, i'm dad!

pliant kernel
#

...

fossil oxide
#

I make a new date

#
          const ping = new Date();
          e.message.channel.sendMessage("Pong!").then(msg => {
            const pong = new Date() - ping;
            msg.edit(`Pong! \`${pong}ms\``);
          });```
#

$ping

exotic kiteBOT
#

Pong! 194ms

leaden nymphBOT
#

Elapsed time: 172ms.

torn auroraBOT
#
:ping_pong: Pong! 164ms
pliant kernel
#
`\`${Date.now() - message.createdTimestamp} ms\``
``` thats what gives me minus
fossil oxide
#

oh

#

They need to be the other way around

#

so

pliant kernel
#

...

#
`\`{message.createdTimestamp -${Date.now() ms\``
#

?

#

wait

fossil oxide
#

`````message.createdTimestamp - ${Date.now() } ms```

#

Yea

#

Because that's how maths works

#

wait

#

it might work

#

don't quote me on that

#

try it

pliant kernel
#

lol

#

that ain't working

#

:/

#

hmm

fossil oxide
#

hmm idk, I make it have a new date when the user does ping, then const pong = new Date then take away the ping new date

pliant kernel
#

oh well

#

Thanks for the help anyway :3

fossil oxide
#

okey :3

tame rivet
#

yt i

plush valveBOT
#
__**Information**__
Version

2.0-beta

Shard ID

10

Total Shards

10

Servers (on this shard)

663

Servers (total)

6418

Users (on this shard)

15460

Channels (on this shard)

10139

tame rivet
#

o i removed uptime

radiant plover
#

.uptime

bronze gazelleBOT
#

idk basically forever

tame rivet
#

lol

bright mango
#

s!ping

arctic caveBOT
#
:ping_pong: Ping

Pong!, This message took: 746ms

bright mango
#

Is that good?

tame rivet
#

no not really

#

yt ping

plush valveBOT
#
__Pong!__
Response Time

123 ms

Looking sluggish?

Let us know! Join the support server! https://discord.gg/yp8WpMh

#
__Pong!__
Response Time

123 ms

Looking sluggish?

Let us know! Join the support server! https://discord.gg/yp8WpMh

earnest phoenix
#

yt ping

plush valveBOT
#
__Pong!__
Response Time

192 ms

Looking sluggish?

Let us know! Join the support server! https://discord.gg/yp8WpMh

#
__Pong!__
Response Time

192 ms

Looking sluggish?

Let us know! Join the support server! https://discord.gg/yp8WpMh

earnest phoenix
#

s!ping

arctic caveBOT
#
:ping_pong: Ping

Pong!, This message took: 746ms

bright mango
#

s!about

arctic caveBOT
#
SamSoft Bot
Version Number:

1.3.2.1

Server Count:

21

Member Count:

1140

Bot ID:

287681651973292043

tame rivet
#

yt i

plush valveBOT
#
__**Information**__
Version

2.0-beta

Shard ID

10

Total Shards

10

Servers (on this shard)

663

Servers (total)

6418

Users (on this shard)

15463

Channels (on this shard)

10139

tame rivet
#

eh server count is borked

tame rivet
#

fixed

earnest phoenix
#

yt i

plush valveBOT
#
__**Information**__
Version

2.0-beta

Shard ID

10

Total Shards

10

Servers (on this shard)

664

Servers (total)

6991

Users (on this shard)

13909

Channels (on this shard)

10149

earnest phoenix
#

10 shards for 7k guilds is er....

#

A lot

tame rivet
#

nah it isnt

#

i used to have like 1 shard per 1000 servers

#

but i got to ~6k and was like "ah screw it i'll set it to 10 so i dont have to scale it up anytime soon"

earnest phoenix
#

Why not make it dynamically assign them?

tame rivet
#

effort

earnest phoenix
#

...

#

@earnest phoenix please shoot me now

#

ok

tame rivet
#

ye pls ik im bad coder

opaque bison
#

How do I set my bot to updating process and maybe add new commands or modify old ones???

#

Without taking bot offline

earnest phoenix
#

Just take it offline

#

It will only be off for a min

real glacier
#

or less than a minute

earnest phoenix
#

Depends on the amount of shards and things

opaque bison
#

Not gonna use shards till 1k servers tbh

#

Maybe 2.5k

real glacier
#

how many do you have rn @opaque bison ?

opaque bison
#

My bot is private and under development, It'll go live in a week or so

#

I am adding as many stuff as I can by taking inputs from my followers aka supporterd

#

Supporters*

faint jetty
#

as in like donators?

#

@opaque bison

opaque bison
#

Not donators :(

faint jetty
#

why'd you say aka supporters ๐Ÿค”

opaque bison
#

I mean they are supporting me with ideas + morally motivating

#

That's support :)

faint jetty
#

ah alright

#

it takes a while to get past a few servers

opaque bison
#

Ohh but my bot is at a level of bots which are at around 1000 servers so I don't think it should take that long

#

It's coded really well with a lot of features

real glacier
#

@opaque bison is the bot here too?

earnest phoenix
#

@opaque bison What language?

#

Please don't trigger me :p

keen anvil
#

I'm also curious

faint jetty
#

@AdityaTD#5346 it's in 1000 servers then? lol

#

@opaque bison

warm canopy
#

hey so im working on my selfbot with the reload command, is there a way to reload all commands?

faint jetty
#
  1. what lib
#
  1. what lang
warm canopy
#

Node.js

#

nvm i think i got it

keen anvil
#

Why not have it automatically reload?

vital lark
#

?

keen anvil
#

Mine doesn't need reloaded unless the main file is changed

#

no need for a command

faint jetty
#

Mine can't reload!

opaque bison
#

How do I make a bot reload? Let me figure this out

sterile trail
#

What Lib?

#

-serverinfo

cloud kestrelBOT
#

Since 30 Dec 2016 17:30. That's over 111 days ago!

Region

eu-central

Users

136/336

Text Channels

12

Voice Channels

3

Roles

11

Owner

Oliy#0296

faint jetty
#

/status

thorn salmonBOT
#
Bot Status

:thumbsup:

Loaded commands

68

Received messages

120484

Commands received

10,251

Guilds

1689

Voice Connections

13

Queue

704

CPU

8.9%

RAM

869.0 / 1043.0 MB

Developers

Adam#9261, Akio Nakao#7507

faint jetty
#

/stats guilds

thorn salmonBOT
#
Hourly

Amount: 6
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ€‹ 50% Joined (3)
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ€‹ 50% Left (3)

Daily

Amount: 138
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ€‹ 65% Joined (91)
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ€‹ 34% Left (47)

This Session

Amount: 138
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ€‹ 65% Joined (91)
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ€‹ 34% Left (47)

Guilds

1689

faint jetty
#

o

sterile trail
#

&

restive berryBOT
#

Hmmm..?

sterile trail
#

&help

restive berryBOT
#
= Command List =

[Use &help <commandname> for details]

&8ball          :: Ask the magic 8 ball a question!
&about          :: Get all the additional info which arent viewed in other commands.
&announcement   :: BOT sends the latest annoucement in your DMs. [NEW ANNOUNCEMENT]
&ban            :: Bans the mentioned user.
&botstats       :: Views the Technical info and Statistics
&dj             :: Its #PartyTime!
&help           :: Displays all the available commands for your permission level.
&imdb           :: Search IMDB for film information
&invite         :: By this command, You can view the invite link for me.
&kick           :: Kicks the mentioned user.
&kill           :: Kill a player and send them to hell
&lockdown       :: This will lock a channel down for the set duration, be it in hours, minutes or seconds.
&mute           :: mutes or unmutes a mentioned user
&network        :: 
&ping           :: Ping/Pong command. I wonder what this does? /sarcasm
&purge          :: Purges X amount of messages from a given channel.
&reload         :: Reloads the command file, if it's been updated or modified.
&restart        :: Reload all the .json and the .js files (Bot admin approval  required.)
&revive         :: Revive a player and bring them back from hell
&roleinfo       :: Views role info according to config.json
&russian        :: Play Russian Roulette
&say            :: Bot will repeat what you say
&slot           :: Play slots in discod!
&stats          :: Display user stats
&status         :: Views info about bot
&support-server :: Views the support server
&talk           :: Now talk with the BOT in DM! (There might be some API error.)
&unban          :: Unbans the user.
&warn           :: Issues a warning to the mentioned user.
opaque bison
#

@sterile trail Discord.JS-Commando

sterile trail
#

You wanna reload commands like this?

#

&reload dj

restive berryBOT
#

Successfully reloaded: dj

opaque bison
#

yeah ๐Ÿ˜„

sterile trail
#

here

opaque bison
#

:?

sterile trail
opaque bison
#

๐Ÿ˜ฎ

sterile trail
#

...

#

&

restive berryBOT
#

Hmmm..?

opaque bison
#

I'll have a look, Thanks, not gonna copy it though ๐Ÿ˜›

#

Komada hmm....

sterile trail
#

lol

#

Get an idea

opaque bison
#

What do you mean?

sterile trail
#

Convert it to your lib

opaque bison
#

Yeah it's ez don't worry

#

Ohhh, it's this easy? .reload lol

#

I gotta be attentive more while reading DOcs

sterile trail
#

lol

worthy stirrup
#

-botinfo

gilded plankBOT
#

Please include a bot mention

worthy stirrup
#

-botinfo @thorn salmon

gilded plankBOT
#
Bot info
ID

247093143160356865

Username

Ardent

Discriminator

4254

Short Description

A comprehensive music and administration bot - in English, French, Serbian, Dutch, and more!

Library

JDA

Prefix

/

Points

8

Owner(s)

@faint jetty

Invite
worthy stirrup
#

-botinfo @calm creek

gilded plankBOT
#
Bot info
ID

295942672890331147

Username

Timiki

Discriminator

8285

Short Description

A Multi-Functional and Fun Discord Bot

Library

discord.js

Prefix

%

Points

1

Owner(s)

@worthy stirrup

Invite
earnest phoenix
#

-botinfo @marsh fulcrum

gilded plankBOT
#
Bot info
ID

288473206216458240

Username

GMDxrillexBoT

Discriminator

3801

Short Description

A bot made by me WARNING: Has Some comebacks so don't get mad.

Library

discord.js

Prefix

!!

Points

1

Owner(s)

@dapper nebula

Invite
keen anvil
#

-botinfo @fair grail

gilded plankBOT
#
Bot info
ID

270904126974590976

Username

Dank Memer

Discriminator

6539

Short Description

A meme bot, for memes. Memes and dreams. Wait, no. Just memes.

Library

discord.js

Prefix

pls

Points

0

Owner(s)

@keen anvil

Invite
cedar garden
#

-botinfo @velvet lake

gilded plankBOT
#
Bot info
ID

275388037817696287

Username

Discord Cards

Discriminator

1007

Short Description

A discord trading card bot

Library

discord.js

Prefix

[]

Points

9

Owner(s)

@cedar garden

Invite
patent reef
#

-botinfo @proper drift

gilded plankBOT
#
Bot info
ID

303904389968560129

Username

Spoti-Search

Discriminator

9111

Short Description

Look up information with the Spotify API

Library

discord.js

Prefix

s*

Points

2

Owner(s)

@weary shoal

Invite
keen anvil
#

-botinfo @fair grail

gilded plankBOT
#
Bot info
ID

270904126974590976

Username

Dank Memer

Discriminator

6539

Short Description

A meme bot, for memes. Memes and dreams. Wait, no. Just memes.

Library

discord.js

Prefix

pls

Points

6

Owner(s)

@keen anvil

Invite
lethal elk
#

hi how du i mek denk urben command i tried urben moodule but no hav exemple????

keen anvil
#

Hi greg lol

faint jetty
#

u put setblt on

lethal elk
#

o oeke

faint jetty
#

aftr setbelt on, crsh car

#

to tst setbelt

#

thn proft

lethal elk
#

and dat will gib denk urben defintoon

faint jetty
#

ys

lethal elk
#

aloso how d mem cemend/???

#

AND wen i stert mt bot

#

it sats node not cemmed

#

?????

faint jetty
#

setbelt ony

lethal elk
#

o

#

so it ned be solfbot

#

ok

faint jetty
#

no

lethal elk
#

lul

faint jetty
#

setbelt

#

not solfbot

lethal elk
#

OH

#

o

#

yey it werked

#

thx 4 de java halp xd

faint jetty
#

ys

lethal elk
#

succ

weary shoal
#

Thonks

#

Succ

lethal elk
#

succ

faint jetty
#

fucc

lethal elk
#

what is this channel

#

'development'

#

all i see is bot usage

#

and succ

earnest phoenix
#

@lethal elk,

Damn Right!! Lvl Up!! 2
Your doing AMAZING !! Keep up the good work :)
Your presence is a great gift for our server !!!```
Type **;points** to see your points !!
Type **;level** to see your current level!!
lethal elk
#

Can you not

#

Bots with this shit need to have muted roles

#

;-;

faint jetty
#

@earnest phoenix please stop (cc @ocean edge cuz your bot)

weary shoal
#

Ugh we need Non-Testing Mute

lethal elk
#

^

#

Copying dbots always works

fossil oxide
#

xD

weary shoal
#

Yeah

faint jetty
#

no because they can do it in testing too

#

;_;

lethal elk
#

This channel isn't actually made for bots to be used in

weary shoal
#

We need Mute

lethal elk
#

iirc

faint jetty
#

We have Mute

fossil oxide
#

You want to mute all bots

#

?

#

or just some?

faint jetty
#

just annoying ones

weary shoal
#

Then use mute. On @earnest phoenix

lethal elk
#

Are bots suppose to be used here

#

????

weary shoal
#

Dont think so

fossil oxide
#

Idk

#

Your the community

#

you choose

lethal elk
#

tru

faint jetty
#

I vote no

weary shoal
#

Isn't this for help or shit?

faint jetty
#

Cuz there are testing channels

lethal elk
#

This is now #succ

#

If this is for help with making bots

fossil oxide
#

Okay I disabled all bots from speaking in here

lethal elk
#

yay

weary shoal
#

Ayy

faint jetty
#

thx

lethal elk
#

Pong!

faint jetty
#

!ping

weary shoal
#

IM SAFE FROM THE LMAOS

fossil oxide
#

ayy

faint jetty
#

Pong! 110 ms

#

kek

weary shoal
#

:stopwatch: Pong! 246ms

#

Kappa

lethal elk
#

Invalid command null, do nullundefined for a list of valid commands.

faint jetty
#

do /loan in testing

weary shoal
#

nullundefined

faint jetty
#

when you forget to register subcommands

weary shoal
#

Haha

lethal elk
#

Invalid command Invalid command null, do nullundefined for a list of valid commands., do nullundefined for a list of valid commands.

faint jetty
#

nulldefined

#

List of commands: null

lethal elk
weary shoal
#

/./eval bot.user.friends.size

#
32
#

Whoa friends

faint jetty
#

hah only 32 friends

weary shoal
#

Thats a lot for me ok

faint jetty
#

xd

weary shoal
#

I hang out with like 2 people

#

Its kinda sad

#

/./eval bot.users.size

#
31168
lethal elk
weary shoal
#

Hehe now to add eevrrybody

lethal elk
#

you can only have

#

5k friends

#

and you'll get banned from so many servers

#

for friend botting

faint jetty
#

lol

weary shoal
#

/./eval msg.reply(JSON.stringify(bot.users.filter(u => u.discriminator == bot.user.discriminator && u.username != bot.user.username).first()))

#

@weary shoal, {"id":"196369274577616916","username":"dsakura","discriminator":"7160","avatar":"5a7cde1d36303b54aa932ae47cc19438","bot":false,"lastMessageID":null}

#

There we go

#

It can now run without having to change the discriminator

radiant plover
#

hacker

earnest phoenix
#

how do you do ping embeds again?

weary shoal
#

/./eval bot.ping

#
12560.666666666666
#

Whoa

surreal peak
#

banne

#

You have been kicked from this server. Reason: potato ping

weary shoal
#

This ping be potato

cosmic plover
#

~>ping

#

ata

#

xD

#

wrong channel

floral stone
#

s@userz

sage zenith
#

/./eval bot.ping

weary shoal
#

/./eval bot.ping

#
38.333333333333336
#

Better.

surreal peak
#
Evaluated.
#

30

#

๐Ÿ˜ i win

weary shoal
#

Is my not back in here?

#

Bot not not fucking android

surreal peak
#

They're working on it lad

weary shoal
#

Dont call be lad, son

surreal peak
#

Okay kiddo

weary shoal
#

Dont call be kiddo, lad

surreal peak
#

Okay pal

earnest phoenix
#

no no no

#

this is how you do

weary shoal
#

Dont call me pal, friend

earnest phoenix
#

Okay fucking user from dicksword DB

surreal peak
#

Okay buddy

weary shoal
#

Dont call me buddy, acquaintance

surreal peak
#

Okay amigo

weary shoal
#

Dont call me amigo, amiga

surreal peak
#

Okay....... friend

weary shoal
#

Ok

forest sparrow
#

in discordie how do i get invites from a guild using the bot

clever flax
#

why not ask in DAPI

bitter sundial
forest sparrow
#

did tht

#

shows with [object Promise]

clever flax
#

and

#

you know what a promise is?

#
.then(function(obj,error) {})
surreal peak
#

Roxy eval
var g = Context.Guild as SocketGuild;
return await g.CreateInviteAsync();

#

@scarlet star

#

Roxy cat

#

oh right

bitter sundial
#

right... my eval isn't really working for async lel

radiant plover
#

woops

surreal peak
#

@bitter sundial bots can't talk here

bitter sundial
#

intended I guess

forest sparrow
#

still having issues from getting invites from discordie

weary shoal
teal crown
bitter sundial
#

everyone calls it discordbotsorg

#

but I call it dbl

#

looks good

forest sparrow
#

^say test

abstract mango
#

tfw you reference discordbotsorg as dbl in your code

earnest phoenix
#

Thunkong i don't even make it function

weary shoal
#

anybody see whats wrong with this? Other than it being in python Kappa ```py
async def update_now_playing(self, entry=None, is_paused=False,):
game = None

    if self.user.bot:
        activeplayers = sum(1 for p in self.players.values() if p.is_playing)
        if activeplayers > 1:
        
            game = discord.Game(name="discord.me/ladonegro | live %s " % activeplayers)
            entry = None

        elif activeplayers == 1:
            player = discord.utils.get(self.players.values(), is_playing=True)
            entry = player.current_entry

            
           
    if entry:
        prefix = u'\u275A\u275A ' if is_paused else ''

        name = u'{}{}'.format(prefix, entry.title)[:128]
        game = discord.Game(name=name)
        
    await self.change_status(game)
floral stone
#

@weary shoal What uhhh error r u getting

weary shoal
#

Idk some random guy sent it to me and said it wasnt working. Idek him haha

karmic parcel
#

lmao

floral stone
#

Ask him.

#

name = u'{}{}'.format(prefix, entry.title)[:128]

#

why is there a u in front of it

weary shoal
#

Nah I just sent him to the discord-api server

floral stone
#

and a [:128] at the end

tame rivet
#

are discord channel ids are unique across discord?

bitter sundial
#

yes

tame rivet
#

kk

#

that should make things easier

#

now to handle logistics of 7500 discord servers

#

with json

earnest phoenix
#

not all unique

#

one is same as everyone role, default channel, guild id

bitter sundial
#

well

#

he's asking for channel ids

#

probably ignoring guild ids and role ids

earnest phoenix
#

if ignoring guilds IDs then it is fine to take all

tame rivet
#

kay dumb question

#

but can i set multiple values to one json thing

#

eg

#
  'yt_channel_id' : pewds, tbjzl
}```
bitter sundial
#
server_id_here: {
  'yt_channel_id' : ['pewds', 'tbjzl']
}
tame rivet
#

danke tonkks

bitter sundial
#

it's called an array

tame rivet
#

ik waht arrays are

#

just didnt know it was possible as i generally dont use json

bitter sundial
#

you know js?

#

because json

weary shoal
#

what about jsoff?

bitter sundial
#

funny

tame rivet
#

pff

#

i use python

bitter sundial
#

okay then

tame rivet
#

lol

#

and i guess if i lookup that array

#

wait nvm

#

it'll return as an array

#

not as [value1,value 2]

#

right?

#

so i could do

#
if self.ids[server.id]['yt_channel'] is not None:
  ytchannelid = [self.ids[server.id]['yt_channel'], ytchannelid]
bitter sundial
#

if you parse the json then it'll be as an array

earnest phoenix
#

array in python lang is list

#

๐Ÿ‘€

bitter sundial
#

um yes

#

list

#

it'll be a list

tame rivet
#

kk

floral stone
#

I'm not quite sure you could use ytchannelid in that variable

earnest phoenix
#

list me harder

tame rivet
#

so it'll be then

#

[value1,val2,val3]

floral stone
#

unless u define it first

tame rivet
#

gotchya

#

@floral stone dw its defined already

floral stone
#

i mean

tame rivet
#

oh ye

#

whoops

floral stone
#

doesn't mean it needs to be defined and then use it?

earnest phoenix
#

nano eval require('lebab')

#

um k

floral stone
#

It's like trying mylife = mylife but mylife hasn't meant anything yet.

bitter sundial
#

why kebab

tame rivet
#

i fixed it

#

dw

bitter sundial
#

thats deep

earnest phoenix
#

did you just auto correct to kebab

floral stone
#

it is

earnest phoenix
#

wanna see something deep

bitter sundial
#

i dont use autoincorrect

earnest phoenix
#

client.user.client.user.client.user.client.user.client.user.client.user.client.user.client.user == client.user

ReferenceError: client is not defined
#

c!eval this.client.user.client.user.client.user.client.user.client.user.client.user.client.user.client.user == this.client.user

tame rivet
#

f

bitter sundial
#

f

earnest phoenix
#

where did go edit handler

#

this.client.user.client.user.client.user.client.user.client.user.client.user.client.user.client.user == this.client.user

true
tame rivet
#

complicated functions ftw

earnest phoenix
#

๐Ÿ‘€

tame rivet
#
@announce.command(name="add", pass_context=True, no_pm=True)
    async def _add_channel(self, ctx, ytchannel):
        """Adds a new channel for video announcements. Run this command in the Discord channel you want announcements for."""
        channel = ctx.message.channel
        server = ctx.message.server
        if server.id not in self.ids:
            self.ids[server.id] = {
                'mentionHere' : False,
                'mentionEveryone' : False,
                'message' : 'New video!',
                'yt_channel' : '',
                'latest_video' : '',
                'channel' : channel.id
                }
            await self.bot.say('Looks like this server isn\'t in the database!\nAdding record now with default settings! You can change this with `yt settings`.')
            logger.log('Creating new server data for announce. ID (Server, Channel): {} , {}'.format(ctx.message.server.id, channel.id))
        if len(ctx.message.content.split(' ', 3)) == 3:
            await self.bot.say("Arguments needed!\n\nExample: `yt announce add DramaAlert`")
        else:
            youtube = build("youtube", "v3", developerKey=youtube_key)
            search_response = youtube.search().list(q=ctx.message.content.split(' ', 3)[3],part="id,snippet",maxResults=1,type="channel").execute()
            ytchannelid = search_response.get('items')[0]['id']['channelId']
            if self.ids[server.id]['yt_channel'] is not None:
                yt_channel = [self.ids[server.id]['yt_channel'], ytchannelid]
            else:
                yt_channel = ytchannelid
                self.ids[server.id]['yt_channel'] = ytchannel
            self.ids[server.id]['channel'] = channel.id
        dataIO.save_json(self.ids_path, self.ids)
        await self.bot.say('Enabled announcements for channel id {} ({}) in this channel!'.format(ytchannelid, search_response['items'][0]['snippet']['title']))
earnest phoenix
#

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

#

nooo

#

go

#

away

#

hell

#

of

#

code

tame rivet
#

lol

earnest phoenix
#

kill

#

now

floral stone
#

I'm not scrolling thru that

earnest phoenix
#

pls

#

no

#

kill

floral stone
#

Too long for me

earnest phoenix
#

require('lebab')

Error: Cannot find module 'lebab'
bitter sundial
earnest phoenix
#

how can't you find global module

#

require('lebab')

Error: Cannot find module 'lebab'
#

fake

tame rivet
#

import die

floral stone
#

@tame rivet Does the command work? ๐Ÿค”

#

The add command you provided.

tame rivet
#

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

#

still adding the other bits

earnest phoenix
#

node tho

#

kill it

tame rivet
#

i'll test when its ready

#

look fuck learning another lang when i can just copy paste 9 months old code i made when i knew python

earnest phoenix
#

require('lebab')

{ transform: [Function] }
floral stone
#

I just finished my js course

#

Gonna use it for jquery.

earnest phoenix
#

go

#

away

bitter sundial
#

ew jquery

earnest phoenix
#

stop

#

right

#

there

#

get

#

some

#

help

floral stone
#

It's for a website for my bot

#

so ew you ๐Ÿ–•

earnest phoenix
#

jquery for website

floral stone
#

or js

bitter sundial
#

jquery is outdated nowadays

floral stone
#

I JUST FINISHED THE COURSE

bitter sundial
#

just plain css ๐Ÿ‘Œ๐Ÿป

earnest phoenix
#

jquery more like bloatware and outdware

floral stone
#

Don't get your bots in a twist.

bitter sundial
#

wait what

#

we're talking about js

#

why did I say css

earnest phoenix
#

require('lebab').transform

[Function]
#

require('lebab').transform()

TypeError: Cannot read property 'map' of undefined
#

same

bitter sundial
#

just plain js ๐Ÿ‘Œ๐Ÿป

earnest phoenix
#

require('lebab').transform('const gay = function() {}', ['arrow'])

{ code: 'const gay = () => {}', warnings: [] }
#

i have new command

#

modern-js

bitter sundial
#

nano modernjs

floral stone
#

I want to add my bot to get certify. due to the removal the first time, does those days count for 3 days!

tame rivet
#

ffs

#

im getting the stupidest error pepeLUL

earnest phoenix
tame rivet
#

the built in context module for d.py is telling me i cant assign a value of its to a var

#

or rather the thing im doing isnt possible

#
  File "ytb.py", line 393, in settings
    server = ctx.message.server
AttributeError: 'str' object has no attribute 'message'
#

brb gonna get python help

sonic kindle
#

๐Ÿค”

tame rivet
#

messages b1nzy

sonic kindle
#

Did you pass contex

tame rivet
#

yup

sonic kindle
#

I'm using that same line

#

No error

tame rivet
#
    @bot.group(pass_context=True, no_pm=True)
    async def settings(self, ctx):
        """Manages settings for video announcing"""
        server = ctx.message.server
sonic kindle
#

odd

tame rivet
#

very

sonic kindle
#

bot.message.server maybe

tame rivet
#

hmm

#

AttributeError: '<class 'discord.ext.commands.bot.Bot'>' object has no attribute 'message'

sonic kindle
#

I'll look at mine in a sec

tame rivet
#

wtf

sonic kindle
#

Ya idk that's odd

#

Wait bot.group?

#

That's a thing?

tame rivet
#

yup

#

group commands

#

allows for subcommands

sonic kindle
#

commands.group is what I use

tame rivet
#

ye well

sonic kindle
#

Or bot.command

tame rivet
#

its the same thing effectively iirc

#

but that may be the error

sonic kindle
#

Fair enough

#

But ya could be the error

tame rivet
#

nah

#

that just removed the commands...

sonic kindle
#

commands.group?

tame rivet
#

ye

#

hmm this is a pain

sonic kindle
#

Odd issue

#

Let me know what is when you figure it out I'm curious

tame rivet
#

i might ask danny

tame rivet
#

apparently its because im using a class?

#

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

sonic kindle
#

I'm using a class too. @tame rivet if you're in a class use commands.group

#

@bot.anything doesn't work in a class I think

tame rivet
#

commands.group wasn't working anywhere rip

sonic kindle
#

@tame rivet did import commands

earnest phoenix
sonic kindle
#

I've missed that a few times doing shit on mobile

tame rivet
#

100% there

#

eh I'll fix it in the near future

sonic kindle
#

So odd

vital lark
#

ew moose

sharp rock
#

lol

earnest phoenix
#

\โš™

faint jetty
#

I would like to strongly lobby for returning the site to the original list

#

A small amount of bots crowd the front pages

#

And non-certified and non-featured bots would logically seem to have a much lower conversion rate than otherwise

#

Certification could and should play a role in the algorithm used for the actual list, but it should primarily be based on upvotes and views

bitter sundial
#

can't please everyone

#

how about we add watch time kek

faint jetty
#

I know you can't please everyone, but I feel like the new format is... not conducive to the purpose of the list

bitter sundial
#

I just improved the featured again so more bots are able to get featured

faint jetty
#

The featuring is the part I dislike

bitter sundial
#

I also dislike having "top" be the default sorting for any reason

#

it's there

#

but not something we like to put out there every time you go to the list

earnest phoenix
#

label GitHub when

bitter sundial
#

why do you want a github label tho

earnest phoenix
#

much nicer

#

with repo name

bitter sundial
#

it's like HEY MY BOT IS OPEN SOURCE, COME AND STEAL MY CODE

earnest phoenix
#

lol

bitter sundial
#

don't we have enough labels already

earnest phoenix
#

big GitHub button is gross

#

more labels more love

bitter sundial
#

too many labels

#

too much love

surreal peak
#

never enough love

tame rivet
#

anyone any good at regex?

#

im trying to turn a date such as 2017-05-09T17:58:59.000Z into 17:58 09-05-2017

earnest phoenix
#

@tame rivet smh why would anyone use regex for that

bitter sundial
#

parse date

#

and rebuild

tame rivet
#

because easy

earnest phoenix
#

it is official Date object

tame rivet
#

wait ye why would i

earnest phoenix
#

use it like date

tame rivet
#

๐Ÿคฆ๐Ÿผ

earnest phoenix
#

new Date()

2017-05-10T16:09:42.893Z
#

(new Date()).getHours()

12
bitter sundial
#

he uses python

tame rivet
#

lol

earnest phoenix
#

use python way then

tame rivet
#

ye strftime

#

dw i was being dumb

earnest phoenix
#

who is fromPewDiePie

tame rivet
#

shh

#

interesting

#

its refusing to load the thumbnails

#

okay fixed it

tame rivet
#
index = random.randint(1,totalvids)
            for x in range(0,totalvids - 1):
                if index <= 50:
                    do thing
                else:
                   do thing for if above 50
earnest phoenix
#

ew py

#

@tame rivet

#

go

#

Ewww

#

away

#

^

tame rivet
#

lol

weary shoal
#

EWWWWWWW

earnest phoenix
#

JS <3

tame rivet
#

except i dont know it ๐Ÿ˜ฆ

earnest phoenix
#

JS is life

weary shoal
#

while(python):
print("Ewwww")

earnest phoenix
#

^

tame rivet
#

-bots @earnest phoenix

#

o

earnest phoenix
#

Wrong server

#

correct

#

And it's !bots

weary shoal
#

-botinfo @proper drift

#

Hmm

earnest phoenix
#

Lol

weary shoal
#

Bots no talky in here?

earnest phoenix
#

Oh eait

#

๐Ÿค”

#

For some reason I thought this was Discord Bots server

#

Hahahahaha

tame rivet
#

if js is so great how come my python bot has 3x as many servers as yours? pepeLUL @earnest phoenix

#

/s

earnest phoenix
#

Lol

#

Because you made your bot far before I made mine

#

My bot is only like 6 days old

#

85 servers

#

Has this channel always been here?

tame rivet
#

ye lol

earnest phoenix
#

For some reason I never noticed it until now

#

I always read quickly and ignored it

tame rivet
#

also i'm talking about ardent

earnest phoenix
#

I'm dev in that server

#

I'm making their website

#

Well gtg

#

@tame rivet u better write those bots in js or banne

tame rivet
#

no u

earnest phoenix
#

no u

#

no u

earnest phoenix
#

no u

weary shoal
#

and my axe?

sonic kindle
#

lol

earnest phoenix
#

someday i make posting my server count work

#

until then

#

I'll switch libraries, make 40 different bots, etc

#

lolkpolshelp

#

@earnest phoenix lang?

#

node

bitter sundial
#

js

earnest phoenix
#

aka js snekfetch.post(`https://discordbots.org/api/bots/${client.user.id}/stats`) .set('Authorization', 'UR FOKING DBOTS.ORG KEY') .send({ server_count: client.guilds.size }) .then(console.log('Updated dbots.org status.'))

keen anvil
#

Yeah mine is broken, but whatevs

#

It's only showing for one shard

#

And I don't actually care tbh

earnest phoenix
#

@keen anvil take from all shards

#

or send each shard info

keen anvil
#

Nah

earnest phoenix
#

you could gave it us

#

we could improve it

#

shard it

#

fix it

#

then you steal it

keen anvil
#

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

earnest phoenix
#

pls

#

hand it off

#

we need dank memer

#

I don't even care that its a competitor to membot

#

plsplsplsppls

karmic parcel
#

Dank

#

Dank

#

Dank

#

Dank

#

Cheer for Dank

keen anvil
#

Lol no one here even uses it ๐Ÿคฃ

earnest phoenix
#

hey

#

thats pretty good

#

it works

keen anvil
#

Well

#

It kinda works

earnest phoenix
keen anvil
#

2 serious 4 memes

#

Make it memey

mystic ginkgo
#

Make the page give people epileptic attacks blobokhand

bitter sundial
#

copy dank memer's page

earnest phoenix
#

i will at somepoint

novel badge
#

So, my bot stopped working after a restart. Anyone else having issues with the API right now? ๐Ÿค”

bitter sundial
#

what API?

novel badge
#

I'm using JDA

#

Seems like it is stuck on the connecting process

#

that's why I thought maybe the Discord API is having connection issues ๐Ÿค”

bitter sundial
#

-bots Shinozaki Sophie

gilded plankBOT
#
Shinozaki Sophie#1727
Bots

@harsh ginkgo

novel badge
#

Oh, fixed it

#

Seems like the latest API build broke startups for some bots. Downgrading helped

faint jetty
#

they had an announcement about it lol

gloomy brook
#

What's this bot all about ? I only use bot to play Pokemon. Can I be of any help ?

surreal peak
#

wut

lament mantle
#

yeah, JDA 194 has a disclaimer on their guild saying not to use it... it broke Now Live as well before I went there looking for answers... not sure why DV8 or Alpaca didn't just take that build down

earnest phoenix
#

-owners @red spade

gilded plankBOT
trim cosmos
#

for updating stats would it be better to do something like this (in js)?

// Init
const Discord = require('discord.js');
const bot = new Discord.Client();

function postStats() {
  // Post Stats Code Here
}

// Events
bot.on('guildCreate', (guild) => {
  if ( ((bot.guilds.size % 10) === 0) ) postStats()
});

bot.on('guildDelete', (guild) => {
  if ( ((bot.guilds.size % 10) === 0) ) postStats()  
});

i am aware that there are some issues with this, i.e. annoying owners making bot join and leave multiple times when bot reaches a milestone of lets say 100 or 1000

bitter sundial
#

so you'd want to post every ten servers?

trim cosmos
#

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

#

a set count to reduce possible spam to the api

weary shoal
#

Pretty sure you can just make it update once every 5 mins and it is fine

#

I have it on join/leave so ehh

earnest phoenix
#

Same here

sonic kindle
#

same leave join boot

trim cosmos
#

oh hm

#

k then thanks anyway

keen anvil
#

I mean

#

I have it send whenever it joins/leaves a guild

#

If that's bad, sorry

#

But I only gain 50 a day usually

umbral pelican
#

only

keen anvil
#

that's nothing compared to a ton a bots

umbral pelican
#

Everyone just posts on join/leave tbh

vital lark
#

Your welcome on the .json file way

noble hazel
#

nah

#

gotta post on ready

#

๐Ÿ‘Œ

#

or youno

#

on_message

vital lark
#

lol

sonic kindle
#

Just post on_socket_response ๐Ÿ˜

vital lark
#

@umbral pelican ```js
(function (exports, require, module, __filename, __dirname) { module.exports = client, message => {
^

ReferenceError: client is not defined``` ;/

#

Going to... sleep

umbral pelican
#

@vital lark put client as what you defined it then. Probably bot or this.client

forest sparrow
#

i need to know a way to mention the bot like when the author types @botname#0000 anything

#

in discordie

bitter sundial
#

@forest sparrow

#

shows as
@forest sparrow

pulsar cairn
#

he means when the bot is mentioned

bitter sundial
#

shh...

pulsar cairn
#

so like @cold cobalt hi

bitter sundial
#

@cold cobalt
@cold cobalt

#

<@id>

pulsar cairn
#

@forest sparrow Someone already has this nick

keen anvil
#

How do I check CPU usage for my VPS? I'm using node btw

#

like

#

as part of a command

umbral pelican
#

Isn't it os.loadavg() ๐Ÿค”

weary shoal
bitter sundial
#

os = require('os')

earnest phoenix
#
message.channel.sendMessage('nuuuuu');
};

exports.conf = {
  enabled: true,
  guildOnly: false,
  aliases: ['r'],
  permLevel: 0

};

exports.help = {
  name: 'nuuu',
  description: 'yaas',
  usage: '<>'
};```
#

one of my command

#

ok?

umbral pelican
#

๐Ÿค”

#

Why?

earnest phoenix
#

no pls

#

not komada

vital lark
#

lol

modern ember
#

lmao why komada

#

use commando

vital lark
#

lol

earnest phoenix
#

ewww

#

Commando

vital lark
#

^ tru

#

I like the Discord.js version

umbral pelican
#

๐Ÿค”

earnest phoenix
#

...

modern ember
#

wdum eww

keen anvil
#

Commando is trash too. Make your own bot from scratch

karmic parcel
#

Make your own scratch from bots

sonic kindle
#

Make your own discord library from scratch

cosmic plover
#

ratelimit yourself

earnest phoenix
#

oh

#

yeah

earnest phoenix
#

@bold shuttle#4511 are you back?

earnest phoenix
#

yes

earnest phoenix
#

Damn it

sterile trail
#

Lawl

vital lark
#

LOL

earnest phoenix
#

@Simba#4511 if you update your bot you will be a bot developer again

surreal peak
#

@earnest phoenix he got banned

earnest phoenix
#

Why?

umbral pelican
#

For being acting 10 years old

sonic kindle
#

any one working with the dpy ver 1?

#

this is pissing me off ive been fucking with it for hours py async def send_help(ctx): channel = ctx.message.channel await channel.send('test1') if ctx.invoked_subcommand: await channel.send('test5') pages = ctx.bot.formatter.format_help_for(ctx,ctx.invoked_subcommand) for page in pages: em = discord.Embed(title="Missing args :x:", description=page color=discord.Color.red()) await channel.send(embed=em) await channel.send('test2') else: await channel.send('test6') pages = ctx.bot.formatter.format_help_for(ctx,ctx.command) await channel.send(ctx.command) for page in pages: await channel.send('test8') em = discord.Embed(title="Missing args :x:", description=page color=discord.Color.red()) await channel.send(embed=em) await channel.send('test3') :/

sonic kindle
floral stone
#

In discord py, is there an event handler to see when the bot logs out

#

@sonic kindle why are you using version 1

sonic kindle
#

1.0.0

#

and im dumb af

#

pages = ctx.bot.formatter.format_help_for(ctx,ctx.invoked_subcommand) < pages = await ctx.bot.formatter.format_help_for(ctx,ctx.invoked_subcommand)

#

format_help_for is a coroutine in 1.0.0

earnest phoenix
vital lark
#

is your bot have 2.5k guilds?

surreal peak
#

you dont need 2.5k

#

1k is a good start

sonic kindle
#

@earnest phoenix what version?

#

Discord recommends 1 shard per 1000ish guilds

earnest phoenix
#

newest

#

newest version

sonic kindle
#

1.0.0?

#

Or 0.16.7

#

Makes a big difference

#

Actually it doesn't matter if you're not on 1.0.0

#

Start rewriting your bot

#

And use

bitter sundial
#

-bots NoahLiedFilm

gilded plankBOT
#
NoahLiedFilm#2280
Bots

@jaunty island

bitter sundial
#

-botinfo @jaunty island

gilded plankBOT
#
Bot info
ID

311885238148005888

Username

RandomBotOfficial

Discriminator

8921

Short Description

RandomBot haves a lot of random functions like coinflip, memes and more! Check it out.

Library
Prefix

!

Upvotes

2

Server Count

11 Servers

Owner(s)

@sand briar

Links
bitter sundial
#

you shouldnt shard at 11 servers

weary shoal
#

What really makes it official?

sonic kindle
#

bot = commands.AutoShardedBot(command_prefix="rw!", description='fucking rewritey')

#

^

#

and your sharded

#

just dont fuck with shards on 16.7

#

its a fucking nightmare

#

and you have to use a db for shard a to see shard b

#

use AutoShardedBot or AutoShardedClient

#

tho you will have rewrinte most of you bot for 1.0.0

earnest phoenix
#

Thonkeng love dicksword

#

i can stick it anywhere i want

karmic parcel
#

same

earnest phoenix
#

I dont know @weary shoal

sonic kindle
#

@NoahLiedFilm#2280 just start rewitting for ver 1.0.0

#

@RandomBotOfficial#2280 and will never have to worry about Shards

#

@earnest phoenix what can't I tag you

earnest phoenix
#

idk

sonic kindle
#

Ahh there it is

earnest phoenix
#

i temp changed my name

#

Im on 0.16.6 i think

sonic kindle
#

Probably

#

See this

#

That will be legacy soon

#

Move to rewrite

earnest phoenix
#

am hav this problem

unborn onyx
#

hello

vital lark
#

Hmm

earnest phoenix
#

im pretty sure its within

#

this portion

#

of the code

#
var mvc = msg.member.voiceChannel
        // If the queue is empty, finish.
        if (queue.length === 0) {
            msg.channel.send(wrap('Playback finished.'));
            if (mvc) {
                mvc.leave()
            }
        }```
vital lark
#

You need a Error block & a warn block saying I am gonna replace this.

#

Oh

#

@earnest phoenix when you don't know how to play Music

earnest phoenix
#

xD

vital lark
#

I can't even do Music myself

earnest phoenix
#

well i mean

#

it plays

#

its just

vital lark
#

It's too bs & hard :p

earnest phoenix
#

for like

#

skipping

#

etc

vital lark
#

Do you have a Github repo?

earnest phoenix
#

no

vital lark
#

lol

earnest phoenix
#

it worked just like that

#

before

#

but

vital lark
#

:p

#

Ok

earnest phoenix
#

discordjs

#

updated

#

to

#

11.1

#

maybe something got

vital lark
#

Wait

earnest phoenix
#

deprecated

unborn onyx
#

@vital lark what do I do

vital lark
#

@unborn onyx

unborn onyx
#

wat

vital lark
#

Download VS Code (or Atom (it's shit)) and download Node.js

#

Links: https://nodejs.org

unborn onyx
#

which one

#

recommended or Latest features?

vital lark
#

Latest Features c:

#

or

#

get Atom

#

but Atom is shit.

unborn onyx
#

I know

vital lark
#

XD

#

Do you have it?

unborn onyx
#

no

vital lark
#

download it!

unborn onyx
#

hold on

#

brb

earnest phoenix
#

Visual Studio Code <3

west skiff
#

Atom is best

sonic kindle
#

pycharm

west skiff
#

Pycharm is good but doesn't look good

noble hazel
#

VS

#

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

#

15 is pretty good

#

and PYTS is awesome

sonic kindle
#

how that not look good

#

i love it

west skiff
#

It's very cluttered

sonic kindle
#

i like the sublime sidebar

#

what is that?

#

Atom?

vital lark
#

gg

west skiff
#

Yes

#

@sonic kindle

vital lark
#

lol

noble hazel
#

pycharm is basicly VS15 + Python tools

#

tho i prefer Python tools as it allows for inbuilt git, intellisence and a ton of cool VS only things

vital lark
#

lol

weary lark
#

I prefer OBS Studio as that is the best for streaming. (xd off topic)

sonic kindle
#

I stick to Pycharm because it's got everything I need rn sftp ssh run debug git all of it ๐Ÿคท๐Ÿผ just with the config wasn't a pain in the ass

floral stone
#

Has anyone else have problems with wakatime and sublime?

earnest phoenix
#

no

floral stone
#

Hmm

#

It won't work for me

#

nvm

sonic kindle
#

@floral stone it was messed up for me too took 2 days for the leaderboard to update for me

floral stone
#

@sonic kindle thats not what I'm referring to but thanks

sonic kindle
#

๐Ÿคท๐Ÿผ

noble hazel
#

i need help

#

bluh

#

my JQ isnt working

#

and i dont know why

#
$(document).on("click", "#searchButton", function(){
    $(this).addClass('loading')
    $(this).addClass('disabled')
    var value = $('#searchBox').val()
    var newUrl = '?name=' + $('#searchBox').val()
    alert(newUrl)
    window.location = newUrl
})
#

this used to work

#

like

#

.val();

#

that used to get the value, now it doesnt

#

and im wondering what happened

#

$('#searchBox') gets the object

earnest phoenix
#
$("searchButton").on("click", function(){
    $(this).addClass('loading')
    $(this).addClass('disabled')
    var value = $('#searchBox').val()
    var newUrl = '?name=' + $('#searchBox').val()
    alert(newUrl)
    window.location = newUrl
})```
#

@noble hazel

noble hazel
#

but it returns None when getting .val

#

nono

#

the code runs

#

its not getting the value which is wrong

#

UHHH

#

wth?

#

so

#

my other search bar works perfectly

#

???????

#

wait hang on

#

i think it might be getting the wrong element

#

cus if i have two the same

#

then ofc its getting teh wrong one

#

gfdi

#

nope

#

that didnt change anything

#

๐Ÿค”

#

๐Ÿค”

#

its the same code wise

#

but it doesnt work

#

wew

#

finally

#

sorry bout that

#

im all new too the whole idea of JQUERY

#

and java in general

earnest phoenix
#

@noble hazel Why not just use <form> which handles all that nonsense for you?

noble hazel
#

because

#

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

#

all its doing is appending ?name="VALUE" to the end of it

earnest phoenix
#

It'd be easier to use <form> than custom JS