#development
1 messages · Page 585 of 1
a single connection can only handle 2500 guilds
more than that and you need to increase the number of connections
thanks!! can you point me to a place to explain how to do that? We are using node.js and discord.js
@inner jewel thanks so much!
can someone help me understand how to make servers counter update itself every 30 minutes?
would be amazing!
async def status_task():
while True:
await client.change_presence(game=discord.Game(name=""))
await asyncio.sleep(10)
await client.change_presence(game=discord.Game(name=""))
await asyncio.sleep(10)
await client.change_presence(game=discord.Game(name=""))
await asyncio.sleep(10)
@client.event
async def on_ready():
client.loop.create_task(status_task())
...```
this is for 3 different statuses
if i want every 30 minuts i have to put asyncio.sleep(1800) right? btw thank u so much!

if you want to change status frequently, it's recommended to use at least 1 minute as an interval

brb
@ruby dust got it! ty
k i'm back
I really don't understand what this means, could someone enlighten me on what I need to do to resolve this?
Like a commands list?
I have them separated by category through another command because there are so many it would be too much text to write in one cmd
Make it so it sends it in separated messages?
You can actually use a minimum of 12 seconds, but it's still spammy
then rip me and my spotify timeline

I tend to skip a lot of songs, and jump to a lot of places of them
rip
anyone know if there's any way to send personal emojis on other discord server? from a bot obv
Bots can send emojis from any guild
yep, but i have on my discord my personal emojis, like python one, and if i want my bot send it on other servers, is it possible, sorry for the syntax
is it possible?*
Yes
how?
What languages do you speak? @fiery quest
italian
Oh shit
lol
I dont understand everything in english
But you want to say a specific emotes in a guild?
With your bot
bots can send any emotes from any guilds they're in
as long as it's in a DM or a channel they have external emoji permission
@earnest phoenix yes
@fiery quest do \:emojiname:
\:emojiname:
yes
so the main function of a C# windows form has a dynamic tournamentObject variable which i need to put into a function that executes on a button click
but for some reason i'm unable to figure out how to do this 
is there a way in php to have it like .com/place/THING..
where THING could be like an id or usernames and then said thing is turned into a js variable or just something i can use to set as data from an endpoint using that /THING as a param etc. u get the point, i know you can do things like place.php?id=etc or what i have right now is /place/#id but im curious if theres a way to do it just like /place/THING/ (obv without having each id as its own seperate file which'd be dumb.) i dont even know what its called so if someone can tell me aswell that'd be nice but also i just want to know if its even possible in php since it is a scripting thing right? so, there should™ be a way..
using path parameters in php
Say I have a url like this:
http://www.mysite.com/forum/board1/sub-forum/topics/123
Is there a simple way in PHP (can't use HTAccess) to take that URL and extract board1, sub-forum, topics and 12...
tysm
wot
^
TypeError: Cannot read property 'setActivity' of null
at Timeout.client.setInterval [as _onTimeout] (C:\Users\chill\Desktop\chill\discord-bot\bot.js:44:17)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)```
wot
you're probably on a really old version of discord.js
how to upgrade
for stable npm i discord.js should work ig
am i right to say that, if the bot has manage channels, it can see all categories regardless?
Can someone tell me how to fix this code? I got problems on from snekfetch to node-fetch.
const request = require(‘node-fetch’);
return request(url, {
method: 'GET',
headers: {
Accept: 'text/html, text/plain, text/sgml, text/css, application/xhtml+xml, */*;q=0.01',
'Accept-Encoding': 'gzip, compress, bzip2',
'Accept-Language': 'en',
'User-Agent': 'Lynx/2.8.8rel.2 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/1.0.2l'
},
get 'Set-Cookie'() { return setCookie; },
})
What’s the other thing
what other thing?
url is a google image search url
don't scrape google
you'll easily get ip banned
scrape duckduckgo which allows it
is there a way to do this more efficiently? i only want to add "And more..." if elements of the array needed to be removed
Is this only for js?
yes
Oof
i mean, this method works but its kinda ugly so i want to know if anyone has a better solution for it
Is there any way how to catch timeout exceptions in discord.py without shutting off the bot?
idk about php but my guess is you'd probably need a ?id=value sort of thing still
wow
i didn't scroll down again
yes, but i want as many entries as possible
ree
thats why the while loop is needed
It's splice
but i want to allow as many entries as possible, as their length can vary a lot
that didnt work
oof
but i want as many entries as possible, which is what the code does, but its ugly
Works fine for me
Then add the push thing to that
As it will only be executed if it had to remove something
Like you asked
?
but the thing is
i dont know what max would be
as entries can vary between 50 to ~200 characters
no, in your example max is 2
in my code max is however many fit in the embed
In the code you showed it's hardcoded as 1000 no?
1000 is the number of characters that fit in the embed field
but i dont know how long an entry is
What is manuals
if an entry is 600 characters, hardcoding 2 to fit is too much
yes, and the string lengths vary between 50 and 200-300 characters
so hardcoding a number of manuals to fit wouldnt work
hmm
Because the owner isn't cached
some bots show the owner name..
But why
No
oh?
Check the docs for your library
There's most likely a way
To get the id of the owner
.ownerID
yes
what error
ill try it again
const owner = await message.guild.members.get(message.guild.ownerID);
it does not return error
just undefined
mmmmm
What lib are you using?
I am pretty sure it's message.guild.owner.id
ownerID exists
It's ownerID in Eris 😩
wait a sec
No it exists in discord.js as well
Wesley how long did ur bot get approval?
So when you use the get function it grabs it from cache and most likely the owner isn't cached
so only way i can display the owners name in this bot is by cacheing all members?
Priyanth how long did ur bot get approval?
it takes up to a week would you mind not interrupting development discussions with offtopic
So long
const owner = message.guild.members.get(guild.ownerID)
message.channel.send(owner ? owner : "Can't get owner")
You can do it this way
If you want you can add the member to cache
okay
Which I don't suggest cause discord.js is already ram heavy in terms of their caching system
thanks
[ PY ] Help? :
[main.py]:
names = json.loads(open('names.json'.names).read())
emails = json.loads(open('emails.json').read())
for name in names:
name_extra = ''.join(random.choice(string.digits))
email_chosen = ''.join(random.choice(emails))
username = name.lower() + name_extra + email_chosen
password = ''.join(random.choice(chars) for i in range(8))
[names.json]:
{
"names": [
"Liam",
"Noah",
"William"
etc...
]
}
Error:
Traceback (most recent call last): File "scam.py", line 12, in <module> names = json.loads(open('names.json'.names).read()) AttributeError: 'str' object has no attribute 'names'
well that doesnt work either
._.
open('names.json'.names) is wrong
You need to open the file itself first
aka don't use .names on that string
names is the json object itself
oh ok
you need to call names once more to have it return your array
hmm
names_file = json.loads(open('names.json').read())
names = json.loads(open('names').read())
when you use open() on names.json, it should bring back string
something like this?
read your code
then json.loads makes it a dictionary :3
and understand what you have just written
Tbh you should .close() the files later or use context manager
why?
Limit on opened files in memory
Wrong
go through the steps of what you need your code to do
names_file = json.loads(open('names.json').read())
names = json.loads(open('names').read())
is probably the closest to correct
mhm
yeh. idk how to.
names is not a file or a directory
so
open() wont work.. i guess
json.loads(read('names'))?
names_file = json.loads(open('names.json').read())
names = json.loads(open(names_file).read('names'))
?
You've been sent the code needed, but I would recommend using context managers later anyway
Using open on a dict
meh
you already read names.json
Google how to work with dicts and open files in Python
...
not in my eyes no
Alright
names_fileis a dictionary already.- You are doing
open()on that dictionary. read()takes no args.
^
names = json.loads(open('names.json').read())
print(names['names'])
```?
Ty guys
yw
Anything else you guys can suggest me with my code?
import requests
import os
import random
import string
import json
chars = string.ascii_letters + string.digits + '1234567890'
random.seed = (os.urandom(1024))
#url = ''
names_file = json.loads(open('names.json').read())
names = names_file['names']
emails = json.loads(open('emails.json').read())
for name in names:
name_extra = ''.join(random.choice(string.digits))
email_chosen = ''.join(random.choice(emails))
username = name.lower() + name_extra + email_chosen
password = ''.join(random.choice(chars) for i in range(8))
#requests.post(url, allow_redirects=False, data={ 'asd': username, 'asd': password })
print('sending username "%s" and password "%s"' % (username, password))
Context manager
What is that?
with open('names.json') as some_var:
# do stuff
wha..
Seriously, why don't you Google context managers in Python
There are many examples out there as well as explanations on the Internet
ok ty
Where to get loco api
def getInfo(name):
address = "https://ow-api.com/v1/stats/pc/global/%s/profile"%(name)
response = requests.get(address)
data:Dict[str, any] = json.loads(response.content, encoding = "utf-8")
if response.status_code == 404:
embed = discord.Embed(title = ":slight_frown: Account not found. Please try again!", color = 0xFF0000)
return embed
elif response.status_code == 403:
embed = discord.Embed(title = ":slight_frown: An error occurred. Please report it to the developer by typing `!owbug`")
return embed
return data
ERROR:
Ignoring exception in on_message
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/discord/client.py", line 307, in _run_event
yield from getattr(self, event)(*args, **kwargs)
File "/Users/davide/Desktop/Bots Online/OverBot/OverBot.py", line 334, in on_message
data = getInfo(player)
File "/Users/davide/Desktop/Bots Online/OverBot/OverBot.py", line 32, in getInfo
data:Dict[str, any] = json.loads(response.content.decode("utf-8"))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)```
can someone help me? i dont understand why im getting this error
Js
First of all, I would like to mention that requests is blocking
Use aiohttp for HTTP requests instead
How to get loco api
loco API? 
but i'm using the same method with another api (apex legends one) and it works perfectly, and i know why, if i analyze the json on my browser, in apex api i can see that there is "content-type application/json; charset=utf-8" while in overwatch one is equals but without utf-8, and i dont know what to do, sorry for the syntax, lol
Thanks
tbh idk, I'm just getting this
Lol
@slender thistle i'll try, thanks fot the help!!
@slender thistle Hey can you help me with one thing?
Which is?
so
my code
Everytime i run this code
The emails are in the same order
How can i make that the names for the emails always changes?
@slender thistle Maybe I expressed myself badly. Normally with the method of requests it works, but occasionally, that error occurs at random, and i dont know why
@dull bobcat What's the order of keys in that dict do you get?
What?
everytime i run the code, the accounts have the same name order as the json EVERYTIME
@slender thistle same things that i thought too, lol. And what can i do? maybe an exception with an error message?
but i wanna change so the names are random
Yeah, an error message would work, I believe. Just hope your users won't start hating you for unknown reasons :p
welp?
I mean, that's normal
?
Order of dict won't always change
@slender thistle yeah, i hope too lol
make it into an array?
Tbh idek why you are bothering yourself about that
maybe if you get the actual value of name_of_dict['names'] and turn it into a list
it might work
@slender thistle thanks, again!
how?
like
names_file = json.loads(open('names.json').read())
names = names_file['names']
names_list = [
names
]
?
..
you already turned names into a list
Yup
random.choice(names) should work man
send the code
names_file = json.loads(open('names.json').read())
names_list = names_file['names']
names = random.choice(names_list)
does random.choice work?
python
anyway im using the interpreter in the command prompt
but it should be the same
what do you actually want to do with the list of names?
{ "email" : "x42@hotmail.com", "password" : "AMLRO9ty" }
This is the output i get when i use random.choice()
this is the output i expect to get
{ "email" : "jaxx97@gmail.com", "password" : "mLWM4qeF" }
Which i get when i dont use random.choice()
but, then the names are in the same order everytime
??????????????????????
?
i am not sure how at all
ik
How do i get the full name?
i'm not sure what your python installation is smoking, because if i do random.choice(names) it gives me the full name
thjis has entered the chat
xD
If i edit a message in a channel, my discord.js bot wil nicely log the old and new message in a embed to a log channel. But if I post a message, wait 30 seconds and the edit it, my bot wil crash with RangeError: RichEmbed fields cannot be empty. How do i fix this?
Cooode?
maybe remove . digits, i've never seen that but it looks like you're selecting part of the name @dull bobcat
@zenith jetty It means dont leave Embeds Empty
if you ask what part of code
unfortunately those kind of errors are "manual tracking"
you gotta skim the code yourself and find it
@vapid rune but the digit has nothing with the names to do?
If i post a msg and immidiatly edit it, it wont give an error
Sorry for my bad english 😂
what is it like without .digits?
Where?
things will be different if you dont instantly edit it
oof typo
where though?
if you do string instead of string.digits does it work?
@sinful lotus i will console.log it and see what's the problem
@vapid rune But those has nothing with the name to dooo
I only pass newMsg.content thru to my embed though
Lol
.__________.
i realised that when i looked again
i think names = random.choice(names_list) is the problem
how..
it's taking a name from names_list, so that when you need to pick a random name, it actually picks a random character from a name
Yup
remove that line
yes but thats what ive been trying to change in the last hours
and what i have been saying the whole time
that send the names in the same order
i want the names to be randoooom
xD
then put name = random.choice(names_list) in the for name in names: statement
because then it picks a random name for every name in the list
it can
how do i prevent it from doing that?
idk
there's so many names
that the chance is even smaller
so i think it would be minor
module.exports.update = async function(id, path, newV) {
let update = {
[path]: newV
}
console.log(update)
Guild.update({guildid: id},{
$set: update
});
}
When I try this it keeps logging this:https://gyazo.com/6a1a71fd7d35f254dd6d09735c51c70e
and at the end this is the error:
https://gyazo.com/a53e67104b4e839946c18cff5bb9320f
calling all node bois and gorls
?
what is path and newV defined as?
it's a function
update(message.guild.id, "settings.botPrefix", "?")
it's in a message event
@dull bobcat sorry for ping but do you maybe know it?
Maximum call stack size means its stuck in an infinite loop
I cant pinpoint the origin from just that code, maybe is some weird behavior thats less obvious
man like tim with the diagnosis
Pong! Latency: 2400000ms
question for lavalink. I tried to play a playlist and i console logged it and it came up with this. But it says selectedTrack: -1. Why is that?
so i have 2 textareas in my html, one of them has the id input and the other output but i cant change their content with javascript. i tried setting .value and .innerHTML, but neither of them work. output is readonly, but input doesnt work either
var $ = document.getElementById
document.onload(function() {
$('input').innerHTML = 'hi'
})
<div><textarea class="field" id="input"></textarea></div>
<div><p>this is text</p></div>
<div><textarea class="field" id="output" readonly></textarea></div>```
are you sure that you even fetch the element properly
It works on the other elements if i give them ids
innerText?
``` let lastDaily = await db.fetch(lastDaily_${message.author.id})
try {
db.fetch(account_${message.member.id}).then(bucks => {
if(bucks == null || 0){
db.set(account_${message.member.id}, 50)}
else if (lastDaily !== null && cooldown - (Date.now() - lastDaily) > 0) {
let timeObj = ms(cooldown - (Date.now() - lastDaily))``` cannot read property 'then' of null
@inner jewel @quartz kindle neither of those work
and yes, the javascript file is requirerd
setting innerText works for me
actually nevermind
it doesnt load 
nevermind, its working now
but its window.onload im stupid
and now im going to be arrested
var $ = document.getElementById
while(true) {
$('output').innerText = $('input').innerText
}```
nevermind i think i know whats going on
nevermind
illegal invocation
reee
document.getElementById.bind(document)
or just remove var $ = document.getElementById
also that won't work
not only will it kill your cpu but also block rendering
so how would i set output to the same text thats in input?
in the future i also want to do things with input, then generate an output based on that
oninput
?
input.oninput = () => output.innerText = input.innerText
it says input is not defined
don't just copy paste
i didnt copypaste, i typed what you sent with (function(){}) instead of arrow function
angery
document.getElementById('input').oninput(function(){
document.getElementById('output').innerText = document.getElementById('input').innerText
})
okay here is what i have now
<div><textarea class="field" id="input" oninput="yeet()"></textarea></div>```
var $ = document.getElementById
function yeet() {
$('output').innerText = $('input').innerText
}
the $ obviously works
but i get illegal invocation
stop trying to fake jquery
if i use another character will you accept it
no
its shorter, and just the id doesnt work
the issue is whatever = document.getElementById; whatever() will never work
Why do you even need getelementbyid?
because just typing input.blabla doesnt do anything
and right now its still not working
and i have no idea why
Try console.log(input)
that works 
class X { y() { console.log(this); } }
const x = new X();
const f = x.y
x.y();
f()```
try this in node
and you'll se how """it works in node"""
but doing input.innerText does nothing
Im on the phonr so i cant test, but either that or value should work
Open the console, tyoe something in the textarea, and test your code there
how's this as a basic bot code:
const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () => {
console.log('Logged in as HakPak!');
});
client.on('message', msg => {
let x = msg.content;
if (x.charAt(0) === '!') {
if (x.includes('hello') | x.includes('hi') | x.includes('hey')) {
msg.reply('hello!');
} else {
msg.reply('how may I assist you?');
};
}
});
client.login('token');
very basic though xD
@late hill charAt detects the character at a certain position
Yes
so 0 is the first position (i assume you know that)
But you could also string[index]
https://pastebin.com/D69s49te Someone will help me, bot was sending messages and now no ... this is help command
anyone know why this is happening
why isnt it aligned correctly
can someone help me with my problem above
@spare glen
u can help me with ember
wtf no
what is ember
you mean embed?
oh ye
embed
xD
how i can add it to js code
when i add it to code
my bot go offline
i don't know how i managed to understand "ember" as "embed"
what's the error?
🤦
yeah, teach him how to get the error
by reading discord.js documentation
then fix your syntax
what does the error say on the console?
idk in a host closed now console
my bot in a host, but now im from telephone
have you a video or can u say how to do
everything about coding is reading and writing, if you can't read the docs then you can't write code
send error
what's the error?
we can't help if we dont know the error
should say it in console
but they're saying that the console was closed by host which makes no sense
ramothToday at 8:28 PM
https://cdn.discordapp.com/attachments/266677760666238976/554384958844698630/unknown.png
https://paste.tscforum.com/lwvwtjzdbq.css
anyone know why this is happening
why isnt it aligned correctly
help^^^
Didnt know we helped design websites
last time i checked this was for bot development
well
ah i c
the longer I interact with these people, the more I assume that they think that if they read docs their code is magically good
well, either way, just a css file wont really help
also that paste site times out for me
can i get help
with my site
cant if i cant even read the css
there's a huge ass bee flying around my kitchen
ok now it loads
shit wrong chat
like i said
this is issue
ok wait
fax
warns self for needing to speak in #memes-and-media
Most likely, both of your divs are display:block somehow
hMM
the table is now a block
alright hold on lmao
lollol
i deleted the inline block on #commands
now its this
why arent they aligned
ye?
do i make the big div a class
that's your call
im not good enough at html to give you an actual proper solution, this is the best i can think of on the spot
it worked
omfg
ty so much
now i can style better
and ty so much @scarlet bane
mhm?
take your actual invite link
ye
like, the invite link that you submitted
and put it in place of the "invite"
the full link, http and everything
yes
should work
yes
<a> around the whole button
so like <a><button ... </button></a>
and then href in the a
a is unstyled by default, unless you added css for it
I thought a automatically was blue and underlined 
no clue
Html is beyond everyone's iq
lmao
well, yeah, a has some blue stuff, but its browser-dependent
the blue thingies is because of that too
different browsers have different defaults
fuys
guys
bot.on('message', msg => {
if (msg.content.startsWith(prefix + 'avatar')){
let embed = new Discord.RichEmbed()
.setImage(msg.author.avatarURL)
.setColor('0x2c69d3')
msg.channel.send(embed)
}
});```
why dont work
No error?
i cant seen console
Try msg.author.displayAvatarURL
My bot sometimes has a socket error hang up but it does not crash however no command responds and I am forced to reload my bot you have a solution?
Do you have the error event handled? @lofty hamlet
i have logs
yeee
2019-03-10T20:49:45.562227+00:00 heroku[worker.1]: State changed from starting to up2019-03-10T20:49:48.232408+00:00 app[worker.1]: (node:4) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 message listeners added. Use emitter.setMaxListeners() to increase limit2019-03-10T20:49:48.836829+00:00 app[worker.1]: I am ready!
@spare glen if you're wanting it to go all the way to the right, you could mess around with float: right;. There's also some other properties that can define object positions with position: absolute;, from which can be controlled with left: 0; right: 0; top: 0; bottom: 0;, which are just position definers, in the case of it being absolute
WHY DO YOU have 11 message listeners

2019-03-10T20:58:19.809204+00:00 app[worker.1]: (node:4) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message2019-03-10T20:58:19.809257+00:00 app[worker.1]: at item.request.gen.end (/app/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:68:65)2019-03-10T20:58:19.809260+00:00 app[worker.1]: at then (/app/node_modules/snekfetch/src/index.js:215:21)2019-03-10T20:58:19.809263+00:00 app[worker.1]: at process._tickCallback (internal/process/next_tick.js:68:7)2019-03-10T20:58:19.809279+00:00 app[worker.1]: (node:4) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)2019-03-10T20:58:19.809347+00:00 app[worker.1]: (node:4) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
so?
what problem?
@dusky marsh
can help?
Send code pls
if (msg.content.startsWith(prefix + 'avatar')){
let embed = new Discord.RichEmbed()
.setImage(msg.author.avatarURL)
.setColor('0x2c69d3')
msg.channel.send(embed)
}
});```
Soooo to send an embed do
msg.channel.send({embed})
And if it is still not working add a description / title / field
You shouldnt need the {}, atleast I dont
wait is it bot.on?
Let me try something
thought it was client.on
ye it work
If his client is defined as bot
i see
Then its bot
const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () => {
console.log('Logged in as HakPak!');
});
client.on('message', msg => {
let x = msg.content;
if (x.charAt(0) === '!') {
if (x.includes('hello') | x.includes('hi') | x.includes('hey')) {
msg.reply('hello!');
} else if (x.includes('help')) {
msg.reply('I have not been programmed enough to help you. Sorry.');
} else {
msg.reply('I have not been programmed enough to respond to your statement. However, I believe you said \"' + (x.substr(1, x.length)) + '\".')
}
}
});
client.login('token');
lol i need this for a hackathon on thursday
i'm just struggling to learn this asap
😂
all i need to do is a prototype
so nothing that big
just something to guide
doing a regents prep site
They refer to custom emojis that the bot can use, because it's in the server that has them.
You can usually get the name of those emojis by typing in the message box \{EMOJI_NAME} on the server that has them.
If you can't, the structure of a custom emote as a string is
<:{EMOJI_NAME}:{EMOJI_ID}>
If the emoji is animated, use <a:{EMOJI_NAME}:{EMOJI_ID}>
You could also probably get emojis by referring to the guild that the bot is in, and getting the collection of emojis from that
ty
@wet forge
bur how like look in code
can help
.setFooter('....')
emoji name :vopros:
oh custom emojis can't be used in a footer.
it can only be placed on the title or description of an embed.
i can't tell too well from the image, since mobile is stylized differently
would it be okay to get the message link, or a screenshot from desktop?
my guess from the mobile screenshot is that the icon is a picture uploaded to the image, the bottom text is an image, the icon ℹ is used, but stylized in your mobile device's emoji style
hm
it's really hard to tell on the mobile screenshot
for me at least
I think it's a description anyways
because it has no black space for the title so it isnt a field
Mobile shows an i
well, i mean it depends on the phone
You're also on iphone
so what i'm thinking is that
the phone that they're using overrides the discord emojis with their set
umm
you can do \:emoji: or use https://emojipedia.org
The emoji search engine. A fast emoji search experience with options to browse every emoji by name, category, or platform.
or just use your computer's emoji selector
what
how i can do it look a bubble xD
ℹ️
It's only like that in the footer
\:information_source:
what phone model are you using(?)
old android it seems
gn
ty, u have too

so how can I fix this? @earnest phoenix
okay
anyone can help me with reactions
i want to do a bot that can quiz you
and idk how to make the bot add reactions and detect your reactions
Nice
Lol tony is muted tho
it's in #265156361791209475
ah fuck
it killed my personal server
good thing I still have all the images from there
yeah
rip us
so anyway, our server is dead
and it's likely that it wasn't a person who did it, but rather a bot
I wouldnt be surprised if some nerd had a bot scanning this channel for leaked tokens then spamming them
It wasn't a real server
just a small testing one
The nerd did get my personal server though
wait was it just in your clipboard?
yeah
im impressed
I wanted to give the link
whoever did that -- im impressed
inb4 its nik
Some big nerd
gigantic nerd
I should make a identify spammer
@nik
to like insta reset a bots token
ws connection timeouts make it hard to test stuff
wdym
cuz i restart
and it wont start again
cuz discord wont connect
and i need to restart again
its also annoying when it spontaneously breaks the bot
Refrence Error advaith isnt defnied ldn; fvANJcAdc
for discord brain F
how to fix???
any good eris framework?
lol
my boy andy
sent his bot token
and i punished his bot
by not giving it admin in the new server
😉
this is #development not #memes-and-media
it's kind of development, it's about how he posted his token and got HACKED
i guess
lol
const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () => {
console.log('Logged in as HakPak!');
});
client.on('message', msg => {
let x = msg.content;
if (x.charAt(0) === '~') {
if (x.includes('hello') | x.includes('hi') | x.includes('hey') | x.includes('Hello') | x.includes('Hi') | x.includes('Hey')) {
msg.reply('hello!');
} else if (x.includes('help')) {
msg.reply('I have not been programmed enough to help you. Sorry.');
} else if (x.includes('quiz') | x.includes('test') | x.includes('challenge') | x.includes('Quiz') | x.includes('Test') | x.includes('Challenge')) {
msg.reply('I haven\'t been programmed to quiz you yet, but I will be soon!');
} else {
msg.reply('I have not been programmed enough to respond to your statement. However, I believe you said \"' + (x.substr(1, x.length)) + '\".');
};
};
});
client.login('mTc1mek9vY.e9JDnKW84jK1jf1');
Hows this code
Beautiful, same as your token
👌
But how would you tell if they did try to hack it if it's a fake token
I say the right prefix and command, but it wont do anything
so my code is broken or my bot is broken.
These are the things im importing: http://prntscr.com/mw4hnp
This is one of the commands that don't work (only help does): http://prntscr.com/mw4hw5
It does have Client.run: http://prntscr.com/mw4i8d
When it starts it says this: http://prntscr.com/mw4ift
change cmd_ping to just ping @minor kelp
Remove @ cmd?
To ping
yes
alrighty
with my rudimentary knowledge of python discord bots the function name is the name of the command
so if you ran !cmd_ping then the command should have worked
it worked?
cant add it
me
