#development
1 messages ยท Page 1217 of 1
and i do not get the error again
but another error:
failed to parse weather data
(node:9916) UnhandledPromiseRejectionWarning: Error: failed to parse weather data
F
@earnest phoenix #memes-and-media
what
the way your code is designed right now, if a single error happens in one of the functions, everything else errors
okay
you have to add some error checking
like console.log(...)
yeah
i know they won't fail
because i have ran them all
in another code
remember that hell code?
i've changed my whole source code
to this.
where is "failed to parse weather data" coming from then?
sounds like a weather related error
yeah
so it seems one of the weather checks is failing
@earnest phoenix bropleasse, if you cannot help please stop with fucking around all the time.
yeah, i will run them again
one by one
@earnest phoenix bropleasse, if you cannot help please stop with fucking around all the time.
@eternal osprey this channel is technically a chat channel but for only development
how can i make my bot leave servers with x members
@weak rain that's just suicide
no one will use your bot if you do that
i just want to that for now
Searching locations with: SUNNY
bot.js:107
(node:8536) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'skytext' of undefined
new error
we re getting there :0
send code
@weak rain you want to leave all servers with more than X members?
only current servers or also including new servers?
current
thank god
only for now
loop over the collection
loop over client.guild.cache and check if guild.memberCount is lower than X, if it is, call guild.leave()
@weak rain you want to leave all servers with more than X members?
@quartz kindle less*
bot.guilds.cache.forEach();
inside forEach pass a callback function
@weak rain why the hell do you want to leave servers anyways
that's being a deek
is there a dated tutorial on how to make a welcome to the server discord bot
ive never tried it
You mean if a member joined?
yeah
Use the guildMemberAdd event.
https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=e-guildMemberAdd <- you can read it here.
ty
@whole stream now the link is perfect.
xd
new Discord.GuildMember(clientdataguild);
is that it?
no
You don't have to do that, d.js does it for you
@sinful belfry im fairly sure theres a tag for this
@left sentinel
We aren't a server full of guinea pigs, and are not obligated help you with features that can easily be tested with alts or friends. If you don't have either - at least you can make alts without problems.
??
read it 
A L T S
Or get an alt
that means fake emails and stuff
no
But i need a email
Fr?
yes
Yeh i do
module.exports = {
name: "getinvite",
category: "owner",
run: async (client, message, args) => {
if (message.author.id !== "554185890453389322") {
let guild = null;
if (!args[0]) return message.channel.send("Enter An Name")
if(args[0]){
let fetched = bot.guilds.cache.find(g => g.name === args.join(" "));
let found = bot.guilds.cache.get(args[0]);
if(!found) {
if(fetched) {
guild = fetched;
}
} else {
guild = found
}
} else {
return message.channel.send("Invalid Name!");
}
if(guild){
let tChannel = guild.channels.cache.find(ch => ch.type == "text" && ch.permissionsFor(ch.guild.me).has("CREATE_INSTANT_INVITE"));
if(!tChannel) {
return message.channel.send("An Error Has Occured Try Again!");
}
let invite = await tChannel.createInvite({ temporary: false, maxAge: 0 }).catch(err => {
return message.channel.send(`${err} has occured!`);
});
message.channel.send(invite.url);
} else {
return message.channel.send(`\`${args.join(' ')}\` - Bot is Not in this server`);
}
} else {
return;
}
}}```
why isnt this working
not signing up
i click that and it logs to my main
SA
AS
so i log out
thenwjat
press the button again
OHhh
That makes sence
ooo
well that failed
my test server has email verification ...
LOL
'report @MissModerator#5157 Test
OOps
wrong server
Idling here
Need help ping me

does someone know how to assing a varible using command
like &assing lol
and the bot will reply
lol
Is there a faster way to get your bot verified?
no
Hey! Can someone drop working tutorials (Discord.js v12) for making a music commands?
Yeh ik
bruh I waited 1 and a half month to get vertified...
but im not waiting 1 month]
lOL
imma just add on like 10 websites
and see whats fasteswt
That would be ๐ก๏ธ, I assume
-wrongserver
oh wait this is development anyway haha
:p
but yes its that emoji
def check(reaction, user):
return str(reaction.emoji) == '\U0001f5e1'
try:
reaction, user = await self.bot.wait_for('reaction_add', timeout=10.0, check=check)
except asyncio.TimeoutError:
await ctx.channel.send('Time\'s up!')
return
else:
print("Added")```
ok ill repost since it development anyway, ive tried a few different emojis too but i can never get to the print part :(
did you try \๐ก๏ธ
Hello Yall 
yep
i wanted to ask for help Beacuse my Kick command Wont Work well it works but it says if i kick som i was Unable to kick the Person But the bot kicks the Person.
If someone saw legit working code to make music bot, please share it with me, tired to do it for like 3/4 hours now..
ill dm u @ember oak if i find one.
okay, thanks.
@dusty onyx Is the message you are reacting to cached btw
(I'm not sure if that's the case but...)
hey @slender thistle
hi
๐ค
do yk what the problem is with my kick command for my bot Like it kickes the Person buttttttttt it says after it i was Unable to ban the person
Tried raw_reaction_add yet?
Well, you didn't provide any details like your code or any errors you're getting
so no, there's no way I would know
wait imma send
it doesnt work for what im trying to do h
Oh?
how can i add 2 ids for owner
id1, id2
i tried initially using it, but because i only want reactons to be counted for so long, i thought it would be much simpler to just have a wait_for instead
Oh, I meant using wait_for("raw_reaction_add")
@slender thistle thats the Script its js btw ```bot.on('message', message=>{
let args = message.content.substring(prefix.length).split(" ");
switch(args[0]){
case 'kick':
const user = message.mentions.users.first();
if(user){
const member = message.guild.member(user);
if(member){
member.kick('you has been Kicked For Testing!').then(() =>{
message.reply(`Sucessfully kicked ${user.tag}`);
}).catch(err =>{
console.log(err);
});
message.reply(`I was unable to kick ${user.tag}`);
}
} else {
message.reply('you need to Specify a Person.')
}
unless that's what you meant? ๐ค
idk know how to make it so i can make an radome reason...
ah ๐
@strange hatch put the i was unable to kick in the .catch
okey
Speedy is pro
@misty sigil like this?
lol
yes
...
he is testing bots which were submitted on the same day with mine
but do yk how i make it so i can use an radome reason? @misty sigil
tried raw_reaction_add, same outcome
but do yk how i make it so i can use an radome reason? @misty sigil
@strange hatch args
use arguments
also your indentation is making me have a stroke
use an || thing
well i am a bit ne w to coding js
ok
if (message.author.id !== "554185890453389322 || another-id") return message.reply("I m sorry but this is a owner only command")
no
this will work?
id == firstid || id == secondid
well i last code after 2 years ago
ok
if(thing !== thing || thing2 !== thing2)
if (message.author.id !== "554185890453389322" || "anotherid") return message.reply("I m sorry but this is a owner only command")
this?
no
oko
got it
if (message.author.id !== "554185890453389322" || message.author.id !==
"anotherid") return message.reply("I m sorry but this is a owner only command")
this
yes
oh thanks Matthew
now bot is saying to sending a message -->> I m sorry but this is a owner only command
let ids = [id1, id2]
if(!ids.include(message.author.id)) return;
ok
any1 know how to make command that convert the text to image/photo
use something like canvas
does someone has an exemple of dbl vote in python
@fast quail what errors are you getting?
code?
Also #topgg-api
class TopGG(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.token = ''
self.dblpy = dbl.DBLClient(self.bot, self.token, webhook_path='/dblwebhook', webhook_auth='password', webhook_port=5000)
@commands.Cog.listener()
async def on_dbl_vote(self, data):
print("Received an upvote:", "\n", data, sep="")
@commands.Cog.listener()
async def on_dbl_test(self, data):
print("Received a test upvote:", "\n", data, sep="")
def setup(bot):
bot.add_cog(TopGG(bot))
I have a vps
if you go to ip:port/dblwebhook does the page exist
can't I run it on my local ?
no
the ip needs to be open
how do I open it ?
same thing
If I'm gonna be a smartass, not really :^)
and on the vps, same thing, right ?
If I'm gonna be a smartass, not really :^)
@slender thistle >:
not a network expert so idk
but isn't there a simplier way to get the votes ?
no
oh
just use try catch for that
I need to do that in all cmds
@misty sigil can i do it together for commands i don't have in cmd handler
NaN
personal preference
bot-code.js
index.js is my express.js server
can't delete index.js on repl.it so I recycled it 
how to show all user in my bot
in discord.js
maybe like ${client.users.cache.reduce i forget the code
its client.guilds.cache.reduce
he wants size no?
well, if they want a more precise way of getting the users, they can use a loop on each guild, then on each member list, then map em. by the end they'd have a precise user count since it'll override duplicates when you set the map entry
can som tell me why this dose not work it says Await is not an valid in async function? even tho i did all right ```bot.on('message', message=>{
let args = message.content.substring(prefix.length).split(" ");
switch(args[0]){
case 'kick':
if (message.member.hasPermission("KICK_MEMBERS")) {
if (!message.mentions.users) return message.reply('You must tag 1 user.');
else {
const channel = message.guild.channels.cache.get(696692048543088691);
const member = message.mentions.members.first();
let reason = message.content.split(" ").slice(2).join(' ');
if (member.kickable == false) return message.channel.send("That user cannot be kicked!")
else {
if (!reason) reason = (`No reason provided.`);
await member.send(`You have been kicked from **${message.guild.name}** with the reason: **${reason}**`)
.catch(err => message.channel.send(`โ Unable to contact **${member}**.`));
await member.kick(reason);
const kickEmbed = new MessageEmbed()
.setAuthor(member.user.tag, member.user())
.setThumbnail(member.user.avatarURL())
.setColor("#ee0000")
.setTimestamp()
.addField("Kicked By", message.author.tag)
.addField("Reason", reason);
await channel.send(kickEmbed);
console.log(`${message.author.tag} kicked ${member.user.tag} from '${message.guild.name}' with the reason: '${reason}'.`);
}
}
} else {
message.channel.send("You do not have permission to use kick.");
return;
}
break;
}
async is a basic building block of js, you should learn it
okey
Hiya how can I run commands in my cmd like: Me: ?pull, CMD: git pull <github_link>. Not printing responses I want it to run the command I set? Discord.py
Don't Just Say "Hello" in Chat.
2 for one, nice
ikr
what error
wait i see
!message.member.roles.cache.has(message.guild.roles.cache.find(r => r))
you weren't checking if the member had the role
remove the .

after return
return**.**message.channel.send('YOU DONT HAVE PERMISSIONS')
its literally pointing at it
also maybe put a ; at the end ๐ค
semicolons are optional in JS
@delicate shore code
use .toLowerCase()?
.toLowerCase()
lul
after message.content
you can start by learning JS rather than copying code you find around
^
toLowerCase() btw
yes please
no
it's string.toLowerCase(), message.content is the string, add .toLowerCase() to it, message.content.toLowerCase()
then just how are you
this boi got it ^
no need for 690000000000000 if statements
fucking hell
challenge accepted
yandev wins
message.content is a string
wow
.toLowerCase() works on a string
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase you didnโt even look at this ๐ฉ
๐ฉ some whitenames i swear
true
How dare you want me to learn? just spoonfed 
i never look at docs i hate them so much i just copy code all the time
i hate docs
well then
yeah same
ok but if you actually read the code in GitHub and understand how itโs operating itโs fine
but thatโs not white names
at all
i don't understand i just copy and paste
stackoverflow is 90% of my code, the other 5% is github and those dum-dums over in a support server that gives me free code
lmao


emphasis on the second part of what i sent above
@opal plank 2048 https://hastebin.com/unixihidot.bash
i don't even know what we're talking about
you don't need it
HOW ARE YOU, each field can be used twice, upper or lower case. So its 2*2* 2 (HOW) 2*2*2 (ARE) 2*2*2(YOU)
letโs go I
reminds me of this level of good code https://paste.awoo.rocks/ifixeremow.js
you need to check with regex too
idk how the heck that didnt get starred tbh when it was posted, that turned into my live example of 'HOW NOT TO CODE'
this code makes the term callback hell looks like an understatement
if (command === "playstore") {
let reason = args.slice(1).join(" ");
var gplay = require("google-play-scraper");
if (!args[1])
return msg.reply(`Correct usage is ${PREFIX}playstore APPNAME`);
const [results] = await gplay.search({
term: `${reason}`,
num: 1
});
if (results.title === undefined) {
return msg.reply(`App Not Found BOOMER`);
}
let currency = results.currency;
if (currency == undefined) {
const result = new Discord.MessageEmbed()
.setTitle(results.title)
.setDescription(results.summary)
.setThumbnail(results.icon)
.setColor("RANDOM")
.addField("Developed by", results.developer)
.addField("PRICE", `It's Free Lmao`)
.addField("How To Download?", results.url)
.setFooter(`App id - ${results.appId}`)
msg.channel.send(result)
} else {
const result = new Discord.MessageEmbed()
.setTitle(results.title)
.setDescription(results.summary)
.setThumbnail(results.icon)
.setColor("RANDOM")
.addField("Developed by", results.developer)
.addField("PRICE", `${results.price}${currency}`)
.addField("How To Download?", results.url)
.setFooter(`App id - ${results.appId}`)
msg.channel.send(result)
}
}```
code
error
yes
ok then idk
it was working 7 days back
it just stopped working
@thick gull at JSON.parse (<anonymous>) at /root/app/node_modules/google-play-scraper/lib/utils/scriptData.js:78:26 at Array.reduce (<anonymous>)
does this mean it has to do something with package
I have no clue
ok
see where position 143 leads you
it gives you where the error token is
ยฏ_(ใ)_/ยฏ
Anyone knows how can I get a users game? Like if he's listening to spotify he's saying true and if he's doing nothing/not playing spotify he returns false
Chrck presence
I know but it's false everytime.
anyone else have an issue with embed length on mobile...somwtimes mine is very narrow...but if i scroll up then back down its full width
width not length
that bug has been around for a long time
you can fix it by setting an author field
Can we put a zws there?
awesome ty
i think we can, not sure
user.presence.activities.name === 'Spotify'
``` So I try to do a Spotify info if the user is listening to spotify but he's still returning that he's not listening
Does [1,2,3] == 1 make sense to you
To me?
Yes
Oh, no
You are comparing an array against a string
Means only ```js
user.presence === 'Spotify'
or that
activities is an array and doesn't have a property named name
you'll have to use array methods such as find() to check the activities
Oh, hmm
you can log it to see how it works
or use docs
that's not how find works
how do i catch a unhandled promise rejection
Hm...
try catch
im rewriting my bots using discord.ts and its awesome..just a fyi
Still don't really understand how...
the docs linked explains how
I know
throw a .catch(err) after then await
the demo on site ```js
const array1 = [5, 12, 8, 130, 44];
const found = array1.find(element => element > 10);
console.log(found);
// expected output: 12
or
in your case array1 is activities and the activities are activity objects
Oh
does anyone know a solution for 429 hit on route /gateway/bot?
It probably means your bot got temporarily banned.
one way to test is to send a get request to https://discord.com/api/6/gateway/bot and see the headers
how do I do that?
by sending a get request to the url and checking its headers
oof
"It doesn't always mean that"
But it is kinda always a temp ban
If you're in the CLI run curl -I https://discord.com/api/6/gateway/bot
I am looking for a solution not what it means
you should know what it means
Wait till it ends
your solution is to sit and wait
I understand
please Iโm like 2 IQ but my console spans with missing permissions how do I stop this๐ฉ
all it does is delete the occasional message or two
thatโs it
The bot's or user's message
user
No MANAGE_PERMISSIONS permission
I've seen people make loggers, that log every request(to discord) to track down ratelimits.
this is everything it logs for me
client.on('rateLimit', (...args) => console.log('rateLimit', ...args));
client.on('debug', console.log);
That only logs things after hitting the ratelimit iirc
nice
Not what caused the original one
so what logs the cause of the original one
Nothing.
Since its not simple to do that.
oh well today's my lucky day
No MANAGE_PERMISSIONS permission
@slender thistle is it possible to just not delete messages / catch the error without logging it every time
cause my bot doesnโt have any other functions really itโs just random shit without a main purpose
Overall logic is if channel.permissionsFor(guild.me).manage_messages {message.delete()} else {}
or even scrap the else
is it possible to do that without having it everywhere I delete messages
Don't think so
Unless you change it in the library's code
well thanks anyways then
I have a commands folder, I redirected the fs filesync to another folder which has only one js file, and now it doesn't ratelimit me. I think I narrowed it down to one reason why it is ratelimiting me
this is an update for my ratelimit problem
ok nvm not one reason
Anyone can help me do prefixes with mongodb? Using py
[Swift] Is it possible to have a KeyPath that can point to two different paths? I'm trying to supply an id parameter to a function (ForEach), but due to the way some generated code was made (using GraphQL + Apollo-iOS), it's split into two separate fields.
Yo you know the screen package you can get for ubuntu? sudo apt-get screen. How can I see what files are running on each screen so that I can locate the bot I want to terminate?
yo
me and my friend had doubts
right a command handler is not full of switch statements
there's only one
i mean cases
uhh yeah
they're for aliases
no its not
๐คฆโโ๏ธ
case "command":
case "alias":
i literally just used if statements when i started off with my bot
thats a performance issue tho
how
i've been using that for over 6 months now
I mean yeah it is a performance issue
since if someone does C-ACommandWhichNotExsist
but people do it the way they want
wha-
@sinful belfry
@cold sundial don't send that here please
or a huge
depends
but on message.content not too much but its worth it
yeah
but command handler is alot better
god stop
sorry can't fix something you did purposely
but command handler is alot better
@earnest phoenix please explain what you mean by a command handler i don't get you

He means separate files
ye
command.execute etc
that's what i do
but like why
but smoler
why force it on someone
no listen his my co worker
oh ok
no listen his my co worker
@earnest phoenix did you just literally throw a reversal card on me you're my co worker lmao
lmao
your my co worker
im your co worker
but he doesnt get it
@earnest phoenix same
you don't get what i'm saying i don't get what you're saying
see i catagorized it
still works
finally someone who does that too
i don't mean folders
i meant a single file for each category of commands
listen
and every command is a method of the exports object
but its alot more easy on the performance
so i can just do const ImageComands = require("./commands/image.js");
I am making a mass dm bot
good for u
Only for my server for important announcements
oh ok
Else if else if else if Else if else if else if Else if else if else if Else if else if else if Else if else if else if Else if else if else if Else if else if else if Else if else if else if Else if else if else if Else if else if else if Else if else if else if Else if else ...
but no
discord api
aboose

dank villain, #memes-and-media pls
const members = message.guild.members.filter(m => !m.user.bot).array(); // Filter out bots.
let undelivered = 0;
for (let i = 0; i < members.length; i++) {
const member = members[i];
member.send('Hello there.')
.catch(() => undelivered++);
}
message.channel.send(Messages sent. ${undelivered} members couldn't receive it.)
.catch(console.error);```
I tried this
dank villain, #memes-and-media pls
@digital ibex its still related to development
@delicate shore thanks for saying that you just increased the activity on this channel by saying you're making a mass dm bot

its more shitposting than it is related to development
mass DMs even to one server is api abuse
no im trying to say not use alot of ifs or cases for commands
verified bot dev
@delicate shore god you'll lose verified bot dev if you even JOKE about mass dm bots
Yeah he wants to make for one server
mass DMs even to one server is api abuse
@thick gull the command
Only I will be able to use that
Only my server
rarely for important things
rateimit urself
itโs still api abuse
STILL NOT COOL
oh
no its not api abuse
yes it is
If you need to message everyone just use @everyone or something
If you need to message everyone just use
@everyoneor something
@sudden geyser ikr it isnt hard
if ur ratelimiting urself + library ratelimits, its nowhere near abuse
yeah but still
its still shitty thing to do
use a setTimeout and do it for like, a second and ur good
mass dm?
ye
and it is the reason we have to pass a verification wall now
how do u expect a private bot, limited to a few servers, able to get verified?
mass dm stinky
hes verified
yeah
check pgamerx badges
the "black sheep" bot is public
I am talking about another bot
why the hell would he stay in DBL for a private bot
which i ill create
STILL
itโs still an issue
PRIVATE Bot
Only for my server for important announcements
@delicate shore 
STILL FUCKING BAD

itโs like you have two houses, one has a basement full of kids, the police can still search the other house
๐ฉ
@delicate shore they r talking shit
JUST USE A @everyone ๐ฉ
๐ฉ
this convo is a lot more extreme than it needs to be
ikr
mass dms are bad ok?
@delicate shore they r talking shit
@digital ibex but now i am scared
so i will not do it
nobody likes receiving mass dms
i dont have @earnest phoenix dm everyone in my support server for updates
how do you get hit a ratelimit or whatever u wanna call it? i dont think u guys here understand how it works
i just use @everyone
yeah i dm all 50K users on my bot when thereโs updates

they make special cases
why would dyno be banned?
yes
dyno has a role all command
okay?
dyno has elevated ratelimits
^
dude
PLEASE STOP MASS DM BOTS
Ok i am gonna tell you truth
Someone said he will give me 5$ for making a mass dm bot for his own server
Dyno handles its rate limits a bit differently though.
yes, that still doesnโt give them the right to abuse their api
uh
mass dm stinkier than xig
Ok i am gonna tell you truth
Someone said he will give me 5$ for making a mass dm bot for his own server
@delicate shore but i refused him now
ik, thats what im trying to say. but no one here has any clue about what theyโre talking about
Ok i am gonna tell you truth
Someone said he will give me 5$ for making a mass dm bot for his own server
@delicate shore getting 5$ and getting your bot BLAK SHIP verified only to get banned from discord?
blak ship
star
wrong one it was

how do ratelimits work?
@digital ibex by make too much requests you get ratelimited
what r the actual limits though?
there aren't "actual" limits
Stop staring bru
you follow whatever is returned in the request headers
two dumbass posts on #starboard back to back from the same guy
the ratelimits for discord

Shouldn't it be possible to not hit 429s based on the headers
@lament meteor rate limit explain
i saw it on the docs, im talking about
mass dm isnt api abuse unless u handle it correctly
mass dm bot
insert b1nzy saying no doing z every y
what rate limit @thick gull ?
Shouldn't it be possible to not hit 429s based on the headers
@sudden geyser some libraries do that, some don't
some stop you after you get a 429 and some know when you're going to hit a ratelimit and just block the request until the ratelimit expires
heโs asking how rate limits work
i refused him but he said this

you have a brain
WHY MAKE MASS DM BOTS ANYWAYS
ik how ratelimits work lmao
so ratelimits is basically how many requests you can do in a certain period of time
because ur making no sense
Ok can we stop now
mass dming is api abuse because it is opt-out and not opt-in, the user didn't do anything and they got dm'd. check pins
so what do u need help with?
Why don't libraries just go with the path of not hitting 429s by looking up its headers beforehand
Ok can we stop now
@delicate shore not like we told you a 100 times
u saying making a mass dm bot is api abuse, what if the server had 2 members?
thank you cry
ok i'll do it 
@sudden geyser they do?
im gonna go eat now my hed hert
@digital ibex any server more than 5 members is probs api abuse
I don't think Dsicord.js does for example
Iโll do it for 20$ a week
they do
it may not be api abuse
๐ฟ
but doesn't it have to be opt-in
Just add a 1 week gap between every DM
u saying making a mass dm bot is api abuse, what if the server had 2 members?
@digital ibex just like how offline bots are declined regardless of the reason DISCORD ๐ API ๐ ABUSE ๐ IS ๐ API ๐ ABUSE
im keep on going in circles here

Hey Money doesn't matter I have worked hard on my bot and I cannot even take a single chance I am sorry :(
I said this

that's me

Matthew mind making me a bot to ban all users in every server
I am gonna sleep good night
k
Goodnight
yea sure but for $69,420 per person banned
do not make mass dm bots
bet
tf

HOW DID YOU SEND A MESSAGE ABOVE ME
some kid was harassing me for not having a reaction help menu
@solemn latch please explain your wizardy powers
#development message time to implement
no
I agree
anything reaction based I absolutely hate
@thick gull Zira bot:i have reaction roles as the primary feature
Not all users have reactions on
@thick gull that is just admins being potatoes
If the bot reacts to the message with the reactions, then everyone can react to it
yea but I still donโt like it
If the bot reacts to the message with the reactions, then everyone can react to it
@cinder patio not necessarily
oauth authorize urls can specify perms
unless the bot adder disables
No, there's a role permission which stops users from reacting
Blind people(yes they do use discord) often cannot react at all.
@solemn latch they do react (not with emojis) like WHY DOES THE BOT HAVE A REACTION HELP MENU

Easily
Blind people use computers all the time ๐ค
Discords a wonderful chat program for the blind and visually impaired.
Blind people use computers all the time ๐ค
@solemn latch why the thinking emoji

Always the thinking emoji

My cousin is blind, some of the choices I've taken with my bot is in mind of blind folk, which is why generally it sends new messages rather than editing in a lot of cases, so the tts can read it automatically

My cousin is blind, some of the choices I've taken with my bot is in mind of blind folk, which is why generally it sends new messages rather than editing in a lot of cases, so the tts can read it automatically
@solemn latch you deserve ||stuff|| good boi
anyone knows how to use node-cron and wanna help me with some simple stuff?
i've been trying to rewrite a bot i wrote two years ago, but every time i try to run the very simple code all i get is a super long error message i can't figure out
can i DM it to someone who thinks they might be able to help? i use python btw
You say 2 years ago.. so maybe the discord.js version doesnโt match what youre writing
i use python btw
can anyone help me with Oauth2 stuff?
i have about 40 min if anyone else needs help....if thats ok im not official or anything
specifically this lol
you need to add the redir uri to the list
so pretty much
i was testing with localhost
and it worked fine
and now i uploaded to heroku to test with a domain
so i updated the config acordingly
did you change uri from localhost to new route
and i just cannot get it to work
yea
so my understanding is that heroku asigns a port automatically
to the .env
link a domain to heroku
oh yea....i delt with that before with express server ports
i cant remember fix though....
its ok tho cause i can just set the url as url process.env.PORT /callback
but
that doesn't seem to work
i made it log the end url in console and it seems fine
or possibly
i cant see anything wrong with it
was app sleeping
no
the console logs
https:// my app. herokuapp.com:30044/callback
and the port changes every time i start
becuase thts just hpw heroku does things
but idk why its not working
cause the same thing worked fine on localhost
maybe process.env.PORT || 80

on stack overflow it said
5000
i will try 80
im mad cause i finally managed to set up a proper bot dashboard for my bot
with login and shit
and then as soon as i test not on localhost
it goes ๐
2020-09-05T17:22:17.012906+00:00 app[web.1]: Bot is ready. (8 Guilds - 117 Channels - 267 Users)
2020-09-05T17:22:17.020386+00:00 app[web.1]: Dashboard is up and running on port 80.

so in your url ... https://name.herokuapp.com:${process.env.PORT}/callback doesnt work
callbackURL: https://unnamed-dashboard.herokuapp.com${config.port == 80 ? "" : :${config.port}}/callback,
and then config.port is process.env.PORT
that link is bad
but with that change it logs a new port
try mine once
2020-09-05T17:25:54.049019+00:00 app[web.1]: Bot is ready. (8 Guilds - 117 Channels - 267 Users)
2020-09-05T17:25:54.055829+00:00 app[web.1]: Dashboard is up and running on port 35208.
ok im trying yours
2020-09-05T17:28:43.173624+00:00 app[web.1]: Bot is ready. (8 Guilds - 117 Channels - 267 Users)
2020-09-05T17:28:43.181116+00:00 app[web.1]: Dashboard is up and running on port 3136.
any err in browser
did you make the background graphics?
what do you think of my web design ๐
no thats the discord thing
when it redirects to the Oauth2 page
lol nice
worked?
https://url:port/callback
it didn't
work
no
WHY
it litterally works on localhost
with a specific port
all it needs to do is get the heroku port and add it to the url
DevTools failed to load SourceMap: Could not load content for https://discord.com/assets/dc9b9f2384bd7a734368.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
can someone be a babe and list the pro's and con's for a database that stores per guild settings in their own json file?
For example,
A bot joins a guild, a new GUILD_ID.json is created with their own settings.
Is dat bad or good?
Doesn't matter about storage btw
sounds like a pain...id use a db
nah, i'd say it's easier to manage
ok
@client.command()
async def suggest(ctx, member: discord.Member):
try:
channel = client.get_channel(741284150970941522)
member = ctx.message.author
embed = discord.Embed(
title = "Suggested by:",
description = f'{member}',
color= discord.Colour.blue()
)
embed.set_thumbnail(url=ctx.message.author.avatar_url)
embed.add_field(name="Suggestion:", value=str(ctx.message.content), inline=False)
await channel.send(embed=embed)
except Exception as e:
await ctx.send(e)
I have this code for "suggestions". It worked before, when my bot runned via my PC. But when i host the bot on heroku it doesnt. any reasons?
does the rest of the bot function when you host it on heroku?
is there an error message?
^^
it does,
mmm
about errors - i dont know where to look up
what does console say
if there are any
logs is empty after "login"
as i said. it worked before when i run the bot on my pc via cmd/terminal
the code itself didn't change
edit your command so that it llogs a message in console every time the command is run
like this
yes i changed it - i had an command error respond to let it say something else
so the command is just not registering at all?
so whats your dashboard gonna do/show @charred geyser
Something not found ?
@earnest phoenix it lets you login and edit settings about guilds you have perms on
What's going on here?
I use Galaxy Gate for hosting
@acoustic bridge what's the issue?
woa
Use https://oxide.host/ BEST value imo
@acoustic bridge thats because you didnt specify a member when u ran the command
@delicate shore what's that host
@pure lion i posted a code above of a "suggestion" command. although on heroku it now says "Member "Testing" not found
ideally that should send an error message to the user
Should I drop link here ?
https://contabo.com supports almost every linux distro, i recommend this, if you live in europe.
German server provider | #VPS from โฌ3.99 / mo | EU and US Locations available | 15+ years of experience | 70k+ happy customers | #hosting #cloud #infrastructure
Okay number one; don't use heroku
theres no member in the guild u tested called 'Testing' so it wont work
Should I drop link here ?
ur choice
Number two, @restive furnace, dis bad


















i have reaction roles as the primary feature