#development
1 messages Β· Page 315 of 1
lmao
Anyone know how I would fetch all active voice channels accross all shards in d.js?
@keen anvil I will risk getting banne and ping you...
I don't know d.js or much js, but I would iterate through each shard, then iterate through each guild in that shard to see if it's connected, and if it is add it to a collection of some sort
val connected = ArrayList<VoiceChannel>()
for(shard in arraybot.managerBot.shards.values) {
if(guild in shard.guilds) {
if(someCheckThatIDoNotKnow) {
connected.add(someObjectThatIDoNotKnow)
}
}
}```
That being the kotlin example, I could probably use some .map function but I kept it simple so that yuou get the gist of it
d.js has built in collections
isn't there something in d.js that allows you to fetch something from all shards
bot.shard.broadcastEval()
or you could just mention me master of d.js
lmao
Ok then, master of js. @earnest phoenix gib me code
π₯
the fuck did discord not register this mention 
unless it was msg edit to mention
k
@keen anvil use broadcast eval or get value method on shard util
just a question , how can i get a member count of a specific server using its id in discord.py
nvm
lol
What does this do 
let newMember = await member.guild.member(await client.rest.methods.getUser(member.user.id, true).then(async u => await u.id))
so many await's
lol, I know
I didn't write it
,help
*help
nope no bot
,set prefix *
um
,kick
um
,help
*help
ahhh
403 forbidden
,kick @earnest phoenix
Haha
lol
Ya cant kick in here
why cant my bot talk
doesnt work
Bots can only talk in #commands , #265156322012561408 and #265156361791209475
And if it is certified, #305715157773058058
@weary shoal r u sure i am allowed to kick people
Completely
R U SURE
Yeap
i cant ban u
wait
?
Ded π
d!help
Weird issue where my node opus will just stop working randomly.
I'll get the error that there is no opus engine installed
sounds like an opus problem 
didn't happen till I updated to node 8 Β―_(γ)_/Β―
Rip node 8
Node 10 best node
node 10 π€
nodedows 10
node 0.10.0
node 0.0.1
Node 8 is really good
@keen anvil Try to to delete node_modules & do sudo npm install
idk
sad...
@lost spruce
@tribal estuary
@covert notch
-bots @fiery goblet --noembed
@lost spruce
@tribal estuary
@covert notch
-bots @fiery goblet -noembed
@lost spruce
@tribal estuary
@covert notch
idk but none of those mentions show on mobile
-bots noembed
AnounFXβ’#3494's () bots:
@lost spruce @tribal estuary @covert notch
-botinfo @lost spruce noembed
there's no noembed for botinfo
you could always just not use embeds ever
π₯ 
hey @earnest phoenix can you check out my shit d.js code and help me figure this out?
let [guild, vc, user] = await Promise.all([client.shard.fetchClientValues('guilds.size'), client.shard.fetchClientValues('voiceConnections.size'), client.shard.fetchClientValues('users.size')])
let guilds = guild.reduce((prev, val) => prev + val, 0)
let vcs = vc.reduce((a, b) => { return a + b })
let users = user.reduce((a, b) => { return a + b })
user count is where I'm running into trouble. It's clearly not correct, as the guild the bot is in has more members than it's saying
what would I use to get total user count in that ^?
whut
okay lets make this simple
const = guilds = (await client.shard.fetchClientValues('guilds.size')).reduce((a, b) => a + b);
const voiceConnections = (await client.shard.fetchClientValues('voiceConnections.size')).reduce((a, b) => a + b);
const users = (await client.shard.fetchClientValues('users.size')).reduce((a, b) => a + b);```
user count is correct
as guilds can share same user
so both have diferent members but same user
each member contains its unique guild settings
as roles and etc
user contains all default information that is shared everywhere
so mapping out guilds => membercounts would be incorrect because it would count duplicates, that makes sense. Interesting
yea
example
guild1[contains me you and tonkku] guild2[contains me and you] join them all you get 5 members but you know yourself this is only you thonkku and me thats 3 users
does the ban event not contain the reason
or who banned
it doesn't have reason or who banned
yay checking audit logs
who banned would require to check audit logs
and reason i could make pull request to include in event
but thats other hard part
not all bans are made from client
so not always reason appears
so audit logs again
If you don't know your probably fine
;3;
then under if name == 'main': add bot.load_extension('api')
here anyways
Now you can also put that in you on_ready event sit down side of that is when you load it on ready you will miss the on_ready trigger and only send stats server join and server leave
(Its just a little thing at the begining to show me whats going on btw)
Ok so change everything in the cog from bot to client
Then above client.run
Put client.load_extension('api')
That's will load the cog at boot
And fire off stats on_ready
Wait just confirming, what is cog? facepalm
I really am new to this sorry
And I am a bit slow
I think I know what you are saying though
Not working
its my fault
Maybe ill just send the begining of the code here
and you can fix it?
import json
import aiohttp
uri = 'https://discordbots.org/api'
class botsorgapi:
def init(self, bot):
self.bot = bot
self.session = aiohttp.ClientSession()
def __unload(self):
self.bot.loop.create_task(self.session.close())
async def send(self):
dump = json.dumps({
'server_count': len(self.bot.servers)
})
head = {
'authorization': 'yourkey',
'content-type' : 'application/json'
}
url = '{0}/bots/213868823151902721/stats'.format(uri)
async with self.session.post(url, data=dump, headers=head) as resp:
async def on_server_join(self, server):
await self.update()
async def on_server_remove(self, server):
await self.update()
async def on_ready(self):
await self.update()
def setup(bot):
bot.add_cog(botsorg(bot))
Yes it loads it with load_extension
And runs in the main loop
so for the url for me what would I put? https://discordbots.org/bot/320590882187247617 is my bot
Yes
Yes
And I am just confirming again, where would I find the key? Is it where it says client secret?
@sonic kindle
The key is the API key from the website
OOOOOOOOOOOOOOOOOOOOOOOH
No thats your bots id
you replace the ? with your key
Where do I find this magic key?
Thanks!
And what must I change to client?
What parts exactly
@sonic kindle @weary shoal (Sorry for tag)
Yes lol
import json
import aiohttp
uri = 'https://discordbots.org/api'
class botsorgapi:
def init(self, bot):
self.bot = bot
self.session = aiohttp.ClientSession()
def __unload(self):
self.bot.loop.create_task(self.session.close())
async def send(self):
dump = json.dumps({
'server_count': len(self.bot.servers)
})
head = {
'authorization': '(I found it now)',
'content-type' : 'application/json'
}
url = '{0}https://discordbots.org/bot/320590882187247617'.format(uri)
async with self.session.post(url, data=dump, headers=head) as resp:
async def on_server_join(self, server):
await self.update()
async def on_server_remove(self, server):
await self.update()
async def on_ready(self):
await self.update()
def setup(bot):
bot.add_cog(botsorg(bot))
@sonic kindle Please change it I am confused

^
you too thanks
DEVELOPMENT
will be your first download
inb4 1k downloads in first day
-botinfo @silent stone
well i am screwed
i cant get the server count
and no its not in #312614469819826177
hi guys how do i make bot with assembly??

@gleaming leaf like with Unity? 
@vital lark no im try use arduino board
Is there an API wrappr for Android? Seems Javacord doesn't behave well with it
if on 7.0+ i'd use JDA
Thanks I'm looking at that now
.ping
well since this is quite literally a mass of developers, anyone know how the hell I would fix the worlds worst ordering of discord.js? https://images.xeontechnologies.tk/20.png
so wrong I don't even know where to begin
@plucky kettle henlo my friend
more details what are you trying to do
saying it isn't ordering how you like isn't question
role list in a proper order
how would you like it to be sorted
the same way it would be in server settings
it sorts by position role list of guild settings
so sort same d.js roles
aka
roles.array().sort((a, b) => a.position - b.position)
that should return sorted list
message.guild.roles.array().sort((a, b) => a.position - b.position)
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ]
message.guild.roles.array().sort((a, b) => a.position - b.position)[0]
Role {
guild: [Object],
id: '264445053596991498',
name: '@everyone',
color: 0,
hoist: false,
position: 0,
permissions: 104188992,
managed: false,
mentionable: false }
message.guild.roles.array().sort((a, b) => a.position - b.position)[1]
Role {
guild: [Object],
id: '324186523266187264',
name: 'Admin',
color: 0,
hoist: false,
position: 1,
permissions: 104188992,
managed: false,
mentionable: true }
message.guild.roles.array().sort((a, b) => a.position + b.position)[0]
Role {
guild: [Object],
id: '324625084700688385',
name: 'Shitpost mute (yes, that bad)',
color: 0,
hoist: false,
position: 9,
permissions: 104188992,
managed: false,
mentionable: true }
now sorted right
@plucky kettle use + for sorting
if you havent noticed yet i am the same cat 
no one knows about that of you i see
Apparently not
message.guild.roles.array().sort((a, b) => b.position - a.position)[0]
Role {
guild: [Object],
id: '265158261945270273',
name: 'Website Administrators',
color: 16711853,
hoist: true,
position: 18,
permissions: 2146958463,
managed: false,
mentionable: true }
now right didn't notice it was out of order fully
as shitpost mute
@plucky kettle ^
simple sort rule
if it is number and 2 values
swap them and use -
Why am I getting this error: C:\Users\AugustxD - Official\Desktop\Ayane\src\commands\utility\help.js:122 "name": 'help', ^ SyntaxError: Unexpected token : at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at files.forEach.file (C:\Users\AugustxD - Official\Desktop\Ayane\src\ayane.js:34:18) and the code is: ```js
exports.help = [
"name": 'help',
"description": 'Shows Ayane's commands',
"usage": 'a;help || a;help [command]'
];
maybe try with double quotes
{} not []
that komada?
TypeError: get_server() missing 1 required positional argument: 'id'
So then I put id in the brackets and it says None

@cinder sleet id means server's id
Yes but it says None
Nope @abstract mango
oh

Ok
!invite
i was in the wrong server
yeah yeah
XD
@cinder sleet for py? If it's rewrite it's just the id if it's not it's 'id'
bot.get_server('362827462528173')
for 0.16.x
bot.get_guild(4738362847252)
For 1.0.x
Strings in 16 x
it should bE IN REWRITE TOO TO FOLLOW API
Annoying as f***
Because py rounds ints
You have to convert to a string and back to int
Worst change ever
lol
vote to change back snowflakes to strings
snowflakes as 64bit integers is better
if they are available
way less memory usage
jda changed to long
ano
Jda can do both int and strs
aon
noah
nnoah
NOAH
noah
noah
noah
noah
noah
noah
noah
noah
noah
noah
noah
No
wait I use his bot list
But I can't login
nano ban @earnest phoenix no
noah
noah
noah
noah
noah
noah
noah
noah
noah
noah
noah
noah
noah
noah
NoahLiedFilm?
Nanoah
yes
all of us can't compare
Noah was great
everyone aims to be noah one day
become noah today
luk at my amazing bot i made alone by myself itz the best !1!!!1!11!
Lol
ok so i am gonna start to rewrite my bot in discord.js any recomendations on what to use?
so you was going lua then change to js
yes cuz i ran into alot of problems in lua sofar
and its hard to get help with it
since almost noone uses lu
lua*
Without voice support: npm install discord.js --save
With voice support (node-opus): npm install discord.js node-opus --save
With voice support (opusscript): npm install discord.js opusscript --save
wich one do you recoment?
ok
At least it's only 129 lines and not over a thousand like mine owo
lol
but just so i dont have to search the complete docs how do i set the game in js?
XD
Lol
D.js docs best docs. Everything links to the next thing
Seeeeeeeee
yeah
But don't get stuck in the client, user, client, user, client, user, ... loop.
Best loop
XD
Input:
bot.user.client.user.client.user.client.user.client.user.username
Output:
Mercy
Best loop
XD
client.on('ready', () => {
console.log('I am ready!');
game.name('Type lb.help for help')
});```
thats right?
Doesn't look right
:/
game is not defined
I'm on mobile hmm
In the docs, go to Client then the user property then look in functions for setPresence I think it is
Oh that's not right
I think it's setgame
yeah i think too XD
Then you do bot.user.setGame(stuff goes here)
Yeah in [] is optional
i know
is it not client.setGame
Hmm.
cuz bot is not defined XD
/./exec ls
cmdline.txt
discord-oauth2-example
keybase_amd64.deb
SharpBot
/./exec cat SharpBot/src/commands/utility/setgame.js
cat: SharpBot/src/commands/utility/setgame.js: No such file or directory
lol
/./exec ls SharpBot/src/commands/utility/
ls: cannot access SharpBot/src/commands/utility/: No such file or directory
Oh wait
/./exec cat SharpBot/src/commands/Utility/setgame.js
Caps
const normalizeUrl = require('normalize-url');
exports.run = (bot, msg, args) => {
msg.delete();
if (args.length < 1) {
bot.user.setGame(null, null);
return msg.channel.sendMessage('Cleared your game! :ok_hand:').then(m => m.delete(3000));
}
let parsed = bot.utils.parseArgs(args, ['s:']);
let game = parsed.leftover.join(' ');
let stream = parsed.options.s;
let fields = [{ name: ':video_game: Game', value: game }];
if (stream) {
stream = normalizeUrl(`twitch.tv/${stream}`);
fields.push({ name: ':headphones: Stream URL', value: stream });
}
bot.user.setGame(game, stream);
msg.channel.sendEmbed(
bot.utils.embed(':ok_hand: Game changed!', '', fields)
).then(m => m.delete(5000));
};
exports.info = {
name: 'setgame',
usage: 'setgame <game>',
description: 'Sets your game (shows for other people)',
options: [
{
name: '-s',
usage: '-s <url>',
description: 'Sets your streaming URL to http://twitch.tv/<url>'
}
]
};
Yeah
client.user.setGame then
yay i right for once XD
Lol you missed out user when you said it
mercy confusing people with his own vars
XD
We should make one standardised global name. Bot or client
Pick a side before the war
Eww no
XD
depends on the lib
since in d.js it is Client class
where
What?
I hate the ten min timer
verify phone number to skip
10 min is so usseless
I just joined for the first time
master of all d.js
no wait
oh lol
Hnng

and I have verified phone number
lol
I may have unverified myself
inb4 discord sends ads to ur phone number
lol
if cmd == 'lb.getmewater' then
print(message.author.username.. ' said getmewater!!!!!!!!!')
message.channel:sendMessage {
content = "Here's your water!",
file = "water.jpg"
}
end```
i wanna make that javascript
you guys can probally help with that right?
also wtf
On mobile rn, if nobody else helps I will when I get home
its not going awey
i suggest learning js first
XD

welllll
thats the f part
i got absolutly no patience in learning through docs or youtube
there is book collection covering main js
ehm what i mean is that i instantly like to start and just learn on the way
ans ask people
yea people dont like to spoonfeed people that decide to not learn first lang
yeah i know but normally i dont actually learn through reading or youtube strangely
it just does not work for me
i tried it once
and ehm
i learned nothing from like a 30 video series explaining a complete lang
π€ doubt that
what are you having trouble with
if cmd == 'lb.getmewater' then
print(message.author.username.. ' said getmewater!!!!!!!!!')
message.channel:sendMessage {
content = "Here's your water!",
file = "water.jpg"
}
end
translating that too js
π€
style guide https://github.com/airbnb that will help you at making some great js also could teach you some tricks
yes i do
@bitter sundial i know one repo that has super perfect books for noobs covering ES6 await/async and all future thing
but i dont remember that repo name
https://www.gitbook.com/book/escher/you-don-t-know-js-up-going/details
I know this is a thing
you-don-t-know-js-up-going:
@rustic grove is the file the problem?
yes
mercy really
its true....
I'm not gonna spoonfeed but https://discord.js.org/#/docs/main/stable/class/TextChannel?scrollTo=send
i serieusly already know that....
client.on('message', message => {
if (message.content === 'lb.ping') {
message.reply('pong O_o');
}
});
or the filename
i already made 1 of the commands
also knowing who sended the message is the problemn
same as lua :/
message.author.username
ok
and adding it to a string
I am going to teach you the new way and not the old way
instead of using normal quotes '
tonkku for teacher
change it to the quotes that do this aka `
oh and instead of print use console.log
with the ` quotes you can use ${variable} inside the string
I didn't make anybody switch. I just suggested that lua isn't the best language to make a bot in
:/
${message.author.username} did something
@weary shoal your hope getting track from spotify and decoding it to be played is here https://github.com/airbnb/node-spotify-web
ugh if i am gonna get this all the time i think i will just stop but i will try for now....
we could acctaully find decoding part and build our own spotify decoder to be efficient and use for music playing
message.send(${message.author.username} did something, )
@earnest phoenix I'll wait until after rewrite whenever you do that
just like that?
No , at the end
print(message.author.username.. ' said getmewater!!!!!!!!!') is what I was talking about
message.channel.send
:/
if you look at the docs you see it takes two arguments: content and options
yes
Here's your water! is the content and you can do that
yes
then you add a ,
yes
and start an object
object?
do you know json
ehm
a little bit...
not much too
tho*
and i gotta do this fast cuz i gotta go...
json is javascript objects
here's an example object {dogs: 2, cats: 5}
so can you make an object with file as the filename
ugh lets see....
message.channel.send('Here is your water!',file:'water.jpg' )
probbaly wrong...
an object has to have {} around it
array is a special kid
is this good?
yup
just tell me cuz i gotta go
test it
good
message.channel.send('Here is your water!',file:'water.jpg' )
^^^^
SyntaxError: missing ) after argument list
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3
C:\Users\thoma\Desktop\Lit bot javascript>pause```
...
you didn't update
you forgot to save
and quick fixup because deprecation
Bots can't talk here
{files:['water.jpg']}
works
is there arrays in lua
yes nano handling errors !!!
thx cya tommorow yall
@earnest phoenix was the book I linked the one you were looking for?
nah
it is github repo
when you start fixing module that is super great but in shit code https://ropestore.should-be.legal/2c5172.png
oh yes this !!!
That guys face is perfection
π
great shit
approved by sneklab
https://ropestore.should-be.legal/d3970a.png WE ALL COULD USE LITTLE CHANGE
henlo not friend
how do bot @earnest phoenix
ok what is the command to do?
toaster-toast({ time: 3 })
How to bot
1. Buy fridge
2. Install toaster
3. require('toaster').toast({ time: 3 });
4. ???
5. Profit
Oh mighty @earnest phoenix, will d.js internal sharding (
) be more compatible with clusters?
d.js internal sharding is just running same processing but with more websockets connected so discord thinks bot is sharded
thats pretty good for bots that didn't reach like 10k guilds
but later process wont be powerful enough to handle that load
it will need actual spliting
So I'll keep on using the sharding manager? :/
well internal sharding is good enough for you now
8.1k servers, so by the time internal comes out, I'll probably be over 10k
it will decrease memory usage somewhere like ~50MB but thats just value by bot size
@keen anvil you can always download gus internal sharding fork
and use it
I mean whatever you think will help performance best. I have a 4 core VPS, but you know, no clusters. I did just move my image generation over to a cheap 1 core server with express
why move it to new vps
you actually could spawn it on 1 of free cores
as child process
Cause idk how to do that.
and talk over process events or any other type
I'm not storing anything besides 3 images that generate.
it's for trigger, warp, invert, magik, and salty
trigger and salty being heavy commands on the CPU
yea gm and imageMagick are memory monsters
mm, not really an option that does the same thing in js iirc. I'd have to write my own
As long as it doesn't get too high before I notice, I can always restart the api server
not a big deal
If you can do that, it would be great. But roll, swirl, and implode aren't exactly built in functions
if i will need i will create those functions
Be my guest
anyone wanna look at my broken cog code and tell me what tf is wrong https://github.com/xshotD/lolbot/tree/master/cogs
@weary shoal
What?
i made it work....
Ayy gj!
Haha nice
only i noticed it glitches sometimes and does not play the music
Hi, want to find into squelize model, a random tag.
https://github.com/itskiru/Sagiri/blob/master/dataProviders/postgreSQL/models/Tag.js
that's my model
https://i.kiru.space/wqNoR.png
That return me to undefined
Hey, its me, Spectrix the noob again... I cant seem to figure out how to get my program to tell me how many members are in all the servers my bot can see
I am using Python
well for js it was like client.guilds.size IF i remember correctly.
#eval client.guilds.size
wut
oops
can do it here XD
pffff idk i am not there yet for me
i still gotta make my music player work correct
my que already works XD
using what Library for yout bot?
discord.js
@static oasis try googling anime picture api
Does the site have an actual API? @static oasis
https://myanimelist.net/modules.php%3Fgo%3Dapi
https://myanimelist.net /api/anime|manga/search.xml?q=full+metal ... <image>
https://myanimelist.cdn-dena.com/images/anime/6/4052.jpg</image> </entry>Β ...
https://www.reddit.com/r/anime/comments/5ec91v/any_api_for_anime_wallpapers/
22 Nov 2016 ... Are there any services that provide random anime wallpapers with APIs? Like,
Bing's Image of the Day, NASA's Astronomy Picture of the Day,...
http://anilist-api.readthedocs.io/en/latest/anime.html
AnimeΒΆ. Title languages: To make supporting the user title_language option
easier, if the english or japanese titles are not available their values will be
replacedΒ ...
https://github.com/jieverson/animeapi
A free, easy-to-use and open-source RESTful API for Anime Data. ... "picture": "
http://cdn.myanimelist.net/images/anime/10/47347.jpg", "synopsis": "CenturiesΒ ...
https://konachan.com/help/api
Konachan.com - Image board site for Anime / Manga wallpapers. ... Moebooru
offers API which is mostly compatible with Danbooru API (version 1.13.0) to make
Β ...
I swear nobody has independence here
wut
It shouldn't be I don't know how to do this so I will give up and wait for somebody to give me their code
That's not how life works
litterly i just starting coding in js XD
and i made the voice in 1 whole day full of stress and hell
Ik I'm not talking about you Thomas it's ok
Lol
mada mada
now i know what you guys mean with no spoonfeeding XD
my mom was bad then
lol
I have one file that can be copied into a bot.on('message') that is a fully working YouTube search and player
I need to split it up
Too much ram usg
spoooonfeeeeeeddiiiiiiing
i currently can only do id
@weary shoal 
what is that
xd
is it this?
https://www.npmjs.com/package/youtube-search
@weary shoal
@next path That wont help you if you dont have any music playing to start with as it only searches and doesnt play but yes
yeah thats why im like half way lost xd
Which one that have the both sides? 
I dont know if there is one
There isn't I don't think
Who is @sinful jolt I am confuse
@woven verge 
@viral saffron
@silk token
Less confused?
I left ALL of them
Ye who is going to find me as a furry name Crystal
Jks ly Tom/Crystal/Whatever your name is now
You should have told me I would have given back your donator rank lol
I joined yesterday I just gotta click the thing on patron and it will give me
lol
Tbh I actually thought you quit Discord when all the people were kicked from your guilds
Tru
The staff from my server couldn't get along with staff from my other servers
So I deleted some and left the rest
So empty
lol
All but 1 offline
/invis
Hmmm people https://mercy.is-a-good-waifu.com/c296e2.png
Only time people PM me is to send nudes or ask for things
Boobbot π
Yeah
Blame Francis
selfbot (3)
wtf (3)
dm-clear (1)
christian (0)
wow (0)
bot.channels.filter(c => c.recipient && c.recipient.bot).forEach(c => c.delete())
Input:
bot.channels.filter(c => c.recipient && c.recipient.bot).forEach(c => c.delete())
Output:
undefined
No more bots https://mercy.is-a-good-waifu.com/a4f54d.png
Ayy
Input:
bot.channels.filter(c => c.recipient && c.recipient.id == '203587309843513344').forEach(c => c.delete())
Output:
undefined
I used aiohttp and the app endpoint to leave all guilds
Without unverifying my email
lol
And poof no unverify email
wait ur tom?
lul
no
It doesnt tag me so Β―_(γ)_/Β―
same
how do you do code boxes in an embed?
this isnt code box
this is codeblock u dambs
also it is same markdown nothing changed
console.log('banter');
.stats
++profile

you got answered by user named dumb and you beleave it 
π
yeah no one can access deleted images rip
back at square 1 LUL
"yeah no one can access deleted images rip"
that's why they are called deleted lul
they're still kept
and can be accessed
if you have right rights to image
one of them is being message author
@umbral pelican guildmember.ban will ban that user with knowledge that member exist
guild.ban is used with knowledge of member may not be in guild
d.js
anyways @umbral pelican it is just alias for guild.ban
but having member
so after ban is done you can still have member details
for mod log and ect
means eat biggest or best
I think I've cracked Message Delete Logs
These audit logs suck so much they dont actually return a message object, but you can always find workarounds :^)
discord audit logs are nice but could use some more things
Yeah I really wan't them to just send a message in extras for message_delete would make things alot easier
Soon I guess :/
@earnest phoenix wew that's a dum thing to say
@slow idol they don't give you a message on purpose lol
and wan't is not a word
What's the purpose then?
I've found a workaround for it anyway https://github.com/OSCAR-WOS/EyeBotTester/blob/2f043e916a9c807809d8bc0414f3ba9c5f9ca58c/js/events/messageDelete.js#L11
an example
Yea but mod log is already broken here because Luca does a fuck ton of role updates
get more boats :^)
Yea Oily why dont you use blargbot for the mod logs π€ or my moderator bot
yeet
client.on('ready', () => {
console.log('I am ready!');
client.user.setGame('Type lb.help for help')
exec(`curl -X POST -H "TOKEN of my bot is here" -H "Content-type: application/json" -d '{"server_count": "${client.guilds.size}"}' "https://discordbots.org/api/bots/325338513153196032/stats"`);
console.log(`Running on ${client.guilds.size}`);
});```
whats wrong with it
exec(`curl -X POST -H "MzI1MzM4NTEzMTUzMTk2MDMy.DCWyxA.BBMNbCtmYcnnBnPPk57AOVp4fGE" -H "Content-type: application/json" -d '{"server_count": "${client.guilds.size}"}' "https://discordbots.org/api/bots/325338513153196032/stats"`);
^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3```
/\
the error
and the arrows are under the server count
bruh
snekfetch.post(`https://discordbots.org/api/bots/${client.user.id}/stats`)
.set('Authorization', 'UR DBOTS.ORG KEY')
.send({ server_count: client.guilds.size })
.then(console.log('Updated dbots.org status.'))
.catch(e => console.warn('dbots.org down spam @oliy'));```
this one?
Lol
ugh well got a new token now :/
damit now i gotta redo all the tokens in my script
UGH
done
XD
Hardcoded token 
rip i was booting your token
lol
booting my token ?
sorry i just dont knwo why you actually gotta hide your token :/
@rustic grove put your token in a config file and that way all you ever have to put in your script is config.token
same with your id
config.dev
it leaked from the error he showed




