#development
1 messages ยท Page 1293 of 1
I will try that
@earnest phoenix any proper database will work, sqlite, mysql, mongodb, postgresql, and many others
@earnest phoenix if you're using discord.js v12, its member.roles.add()
@quartz kindle It comes back with the error "member is not defined"
i didnt tell you to remove message
I happen to be extremely lucky
K9 is open source
So I can fix their memory leak for them and create a PR
*Assuming I am smart enough
*And can reproduce it
If I managed to make a successful fix, and the PR got pulled, it wod fix all of life's problems
im moving my stuff to a new vps, and npm isnt showing outputs, any idea? 
You could do npm install sqlite3 && echo success to see if it worked.
npm goes brrrr
Heyy anyone help me plzzz
i m trying to create server greeting message but it doesn't work anyone help me plzz
so show the new error
Okay same as before wait i ll send u
The other user rebooted their bot for now
So, until their bot leaks again, mine is working for now
It says type error wtf ๐
- you can take screenshots btw
- you just copy pasted what i sent straight into your code
- your token is exposed
delete that pic now and regen it
Just to be clear, that's a user with an invisible pfp, not a continuation of my message
For readers
@sonic lodge can i send u personal msg
M new
i highly recommend you learn the basics of javascript before jumping straight into making a bot
there's tons of resources online and also in this channel's pins
Okay but i know basic commands of bots so i wanna learn
Plzz tell me what about this error
Test
that isn't a screenshot, but like i said
you copy pasted what i sent straight into your code, seemingly without understanding what it was
so i recommend that you take a course on javascript basics, and i'll jus say what you need to fix here
Okay okay i can understand
it should be member.guild.channels.cache.find
@sonic lodge Okay again i'll try...
Wtf
๐ฑ
It's working
Brooo pooled
Seeee
nice
now if you come back in here later, you're gonna have decent javascript knowledge, right?
@sonic lodge Yea broooh
Omg i can't believe that broo thnxxxxxx
Thk u so muchhhhhh
Talk to u later again ..
i'm not ignoring you, i just don't have or use one
im currently waiting for my second bot to get on top gg
i deleted my first one bc it got boring and it wasnt even made using actual code
Hi peeps
Hm
where is the best place to ask for help on this sever
hello im using glitch and keep getting this error Check /app/package.json: command not found. Is a start script missing? https://glitch.com/help/failstart/in logs how can i fix this
does anyone know how to fix ive tryed adding app/ to the start of the file name for package.json
plz ping me or dm if you can help
well it's glitch 
<style>
body {background-image : url("https://thumbs.gfycat.com/AgileElasticEagle-size_restricted.gif")}
</style>```
Why won't it change my bot's backgound page on top.gg?
the background-image probably can't be a gif, not sure
or just try with !important
It used to work, this is so frustrating
@compact oriole when people ask for help generally they don't want snarky responses about what system they use for coding everyone's got there own way of doing things, you shouldnt tell people how to do something bc they will ask for help if they need it i dont mean this in a bad way im just being up front : )


- you get a lot more help when you code it normally
- you shouldn't trust "free hosters" for multiple reasons
- anyone converted from glitch is a win in my book
usually what is do is write it in glitch and host with google cloud monitoring
honestly im pretty new to this so... i dont really know lol
@compact oriole I had to do this:
body style="background-image: url(https://thumbs.gfycat.com/AgileElasticEagle-size_restricted.gif);">
</body>```
bruh that's whack :P
but at least it works
didn't html <img src="url" \>work?
what tech stack would you guys recommend to use for a bot dashboard?
If you're familiar with JS, React/MongoDB maybe
if you're using python then: Flask/django + database + html/css frameworks (e.g. bootstrap)
um my bot isn't getting on no errors but client on ready isn't running
what tech stack would you guys recommend to use for a bot dashboard?
Familiar with JS -> React w/ Next.js and DB
too many requests?
pretty sure it should
hold on then
post here your entire output (remove/hide the token)
bunch of 429 hit on route /gateway/bot
messages nothing else
and token
it keeps on saying that msg
yeah its on a loop
you might have triggered a ratelimit
linux/windows/mac
does your bot work locally
well I'm not too sure then
all I can tell you is that your bot is ratelimited somehow
and its refusing to get /gateway/bot which stops it from logging in
if i have a ms amount, how to see how many hours, or minute or seconds in it?
if you don't like calculating, use a library
conversion ratio is:
1s = 1000ms
1min = 60s
1hr = 60min
ok thanks
function timeConversion(millisec){
let cd = 24 * 60 * 60 * 1000,
ch = 60 * 60 * 1000,
d = Math.floor(millisec / cd),
h = Math.floor( (millisec - d * cd) / ch),
m = Math.round( (millisec - d * cd - h * ch) / 60000),
pad = function(n){ return n < 10 ? '0' + n : n; };
if( m === 60 ){
h++;
m = 0;
}
if( h === 24 ){
d++;
h = 0;
}
return d +" days : "+ pad(h) +" hours : "+ pad(m) + " mins ";
}```
You can use this for example @silver lintel
i used
convertMS: function(ms) {
var d, h, m, s;
s = Math.floor(ms / 1000);
m = Math.floor(s / 60);
s = s % 60;
h = Math.floor(m / 60);
m = m % 60;
d = Math.floor(h / 24);
h = h % 24;
return {
d: d,
h: h,
m: m,
s: s
};
},
using modulus
How do I make a command (that only those with the manage_server ability can use) that can enable/disable a command or cog in a guild?
var x = message.guild.roles.cache.get('some-role-id')
console.log(x) //<- This is defined and fully returns an array
console.log(x.name) //<- For some reason this is undefined
Can anyone help?
Attach some sort of a list to your bot as a property, possibly make it a list of IDs. Using the @command.check decorator, simply return ctx.guild.id in (or not in) in bot.your_list_as_property
ok, what about a command? That's only IF its disabled
I mean, apply the deco to all your commands that you want to be enabled/disabled via a dynamic setting
ok
This is all I have:
@commands.guild_only
@commands.command(name="disable")
@commands.cooldown(1, 10, commands.BucketType.user)
@commands.has_guild_permissions(manage_server=True)
async def disable(self, ctx, command):
"""Disables a command"""
@commands.guild_only
@commands.command(name="enable")
@commands.cooldown(1, 10, commands.BucketType.user)
@commands.has_guild_permissions(manage_server=True)
async def enable(self, ctx, command):
"""Enables a command that was disabled already"""```
Isn't it manage_guild?
That's what I meant lol
also the guild_only deco should require parentheses unless that changed
Oh, that's how it works
huh, that'll be a harder one
Anyone that can help me with my problem?
@valid grotto arrays dont have 'names', get some value in the array first[
im fairly certain it doesnt return an array btw
Oh or whatever it's called, a collection or whatever
It was working yesterday and it should've work like it normally would
but for some reason it isn't now
This is when I console.logged just the variable
map also dont have .name
OR
But it was working yesterday ๐ค
thats not how it works though
this is weird
it either returns a role or not
member id for role?
im fairly certain role name is required
shouldn't it be the role id?
lemme double check rq
some-member-id is an actual ID
yes and is it a role id or a member id?
This is on d.js docs, which shows role.color <
yes and is it a role id or a member id?
@pale vessel Oops role*
@leaden rover so, I think what would be appropriate is a dictionary (bot property, again) where key is guild ID and value is a list of command names. In the command.check function, check if command name is in that list
so it returns a role just fine but you can't access name?
ok
hm
so it returns a role just fine but you can't access
name?
@pale vessel Yup, correct!
It was totally fine yesterday
How to do hyperlinks in python?
Might have something to do with my hosting maybe? Let me try local
you mean markdown hyperlinks for embeds?
dont think theres anything related to that
works in embed descriptions and field values
it either returns a value or undefined
period
if it returns a value, it always has a name
@opal plank I do have a check for that
how are you checking it?
can you post the result somewhere?
thats why you bork
the role itself
discord.Embed(description="[CLICK THIS TO GET FREE ROBUX](http://127.0.0.1/)")
but undefined == null is true
Its the same erwin
ok
Pretty sure it is
check with falsey
since he's not using ===
thanks
The thing is it was working yesterday, if I throw an invalid role, it'll stop it from fetching the role

can you show your actual code?
cuz it makes no sense
maybe there's something different
its either returned or not. if it is, it always has a name
I'll dm you it hold on @pale vessel
unless you are obfuscating i dont think this should dbe happening
@slender thistle u know how many places they have the invite thing on the bottom of the embed. How do they do that?
The bottom...
footer?
Mind giving an example?
like this
Footer doesn't allow hyperlinks
ill send screenshot
Sure
hyperlinks as text 
but add a field instead of setting the description
I'll just show you here @pale vessel @opal plank
let theRole = message.guild.roles.cache.get(args[1]);
if(theRole == null) {
return message.channel.send(greenembed.setDescription(`Your role ID is invalid.`));
} else {
sql.query(`UPDATE xxxx SET roleid = ${theRole.id} WHERE gid = ${message.guild.id}`) // THIS RETURNS A VALUE
message.channel.send(greenembed.setDescription(`${theRole.name}`)) // WHILE THIS DOESN'T
}}
that should work
Yeah exactly lol
I'll keep that in mind
spoonfeeding but whatever, try this
is that correct?
?
embed.add_field(name = "**Support Server**", value = "[Join the server!](server link)")
AH
i see why its erroring
your scope is borked
it doesnt return

@valid grotto
Oh lol wait let me try
let theRole = message.guild.roles.cache.get(args[1]);
if(!theRole) return message.channel.send(greenembed.setDescription(`Your role ID is invalid.`));
sql.query(`UPDATE xxxx SET roleid = ${theRole.id} WHERE gid = ${message.guild.id}`) // THIS RETURNS A VALUE
message.channel.send(greenembed.setDescription(`${theRole.name}`)) // WHILE THIS DOESN'T
@valid grotto
Yup trying
howcome?
why would it work
show me what you put on the code
The same as yours
let theRole = message.guild.roles.cache.get(args[1]);
if(!theRole) return message.channel.send(greenembed.setDescription(`Your role ID is invalid.`));
sql.query(`UPDATE xxx SET roleid = ${theRole.id} WHERE gid = ${message.guild.id}`)
message.channel.send(greenembed.setDescription(`Setting your Member Role ID to : **${theRole.name}**`))
Error :
UnhandledPromiseRejectionWarning: TypeError: theRole.name is not a function
``` @opal plank
you dont have anything else ontop of your code?
Try find instead of get
nah
I use find lolz
you do you

IT'S NOT A FUNCTION
you dont have anything else ontop of your code?
@opal plank Just some embeds
it's somewhere else
Hi
^^
Any dev?
No it's on there line 26
look for theRole.name()
Any android dev?
ctrl + f your code and search for theRole.name()
Any android bot dev please help me I am a newbie
can you show the stack trace?
hm
Stack trace?
let theRole = message.guild.roles.cache.get(args[1]);
if(!theRole) return message.channel.send(greenembed.setDescription(`Your role ID is invalid.`));
sql.query(`UPDATE xxx SET roleid = ${theRole.id} WHERE gid = ${message.guild.id}`)
greenembed.setDescription(`Setting your Member Role ID to : **${theRole.name}**`)
message.channel.send(greenembed)
try that
Thank you for helping me though, first of all โค๏ธ @pale vessel @opal plank
Alright hold on

Any android bot dev?
yes it returns this
which is the embed itself
Still no luck :/
same error?
I want to develop a fully functional bot for free but on android
Yup, same line and what not
can you show the full error?
Yup
Does the discord bot development work with py 3.8? (I do have 3.6 Aswel but Iโm curious as I canโt use pip i to add anything addons)
Yo anyone
@opal plank Ok
can you show the full error?
@pale vessel Yeah thats it ```js
UnhandledPromiseRejectionWarning: TypeError: theRole.name is not a function
1/4 even
Does the discord bot development work with py 3.8? (I do have 3.6 Aswel but Iโm curious as I canโt use pip i to add anything addons)
@onyx hare sure, it says there 3.5.3+
if you can, provide the line count from your code too along with the trace
a screenshot would do
Hmm then itโs my python acting up as I canโt pip install dblpy
It returns โpip is not a function/batchโ
you might want to ask @slender thistle for that
Once my bot is improved, can I make the things I want it to do?
I'll PM you guys as it's going to be quite long
just send a screenshot here
i'd be more comfortable helping here
Ah sure alright wait
:blobdance:

CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: 'list' object is not callable
where'd you get line 26?
What the fuck does it mean?
he sent me the stack trace
oh that explains it
welp, since you helping them, imma go grab a drink
i do sometimes wonder how i can make such perfect code tbh
@earnest phoenix do you have it set up as โfrom discord.ext import commandsโ?
Yes @onyx hare
sum is 983, skipping 1203
Hmm
someone care to explain how i can get more channels that were originally passed?
Is it a permission based

@opal plank Don't flex your math skills ๐ฅบ I feel inferior
Is it a permission based
@onyx hare yes
@opal plank Bro I love that anime in your PFP
ty
it could be
What the fuck alright so before this, my code was like
greenembed.setDescription(`Setting your Member Role ID to : **${theRole.name}**\n\nEnable by typing ``b!enable``)
And I fixed it by removing
\n\nEnable by typing ``b!enable
Any explanation @pale vessel @opal plank
you start your string with a backtick and you have backticks in your string
so js thinks that you want to close the string, not have backticks inside of the string
Try โfrom discord.ext.commands import has_permissions, CheckFailureโ then the bot you put under the @paper bluff.command is @has_permissions (administrators=True) if you want it to be admin only or ifs itโs a purge command you add (administrators=True, mange_messages=True)
@earnest phoenix
thats why i told ya to send the logs n stuff here
Ahh
10/10 to tht one guy who has bot in there name wotta tag
Thanks @opal plank @pale vessel . I really do appreciate it
How can I make my bot send the welcome message in the channel it gets invited to?
@earnest phoenix Gotcha, thanks!
:sad:
what makes it think it's a function though
hey guys. should I have restrequesttimeout on a high or low number. not sure whats best

most people have low
Anyone?
is this it?
yo
im gonna start banging my head on the wall for not noticing unescaped quotes
makes sense
im gonna start banging my head on the wall for not noticing unescaped quotes
@opal plank Lol
https://thumbs.gfycat.com/ActualAdvancedGoitered-small.gif
@opal plank Happy Birthday ๐
is this it?
@pale vessel Ahh it make sense
How can I make my bot send the welcome message in the channel it gets invited to?
@lilac gale
@lilac gale can we not spam?
I sent it twice?
I must've put the backticks today hence why it was working yesterday ๐คฆโโ๏ธ
Try โfrom discord.ext.commands import has_permissions, CheckFailureโ then the bot you put under the @paper bluff.command is @has_permissions (administrators=True) if you want it to be admin only or ifs itโs a purge command you add (administrators=True, mange_messages=True)
@earnest phoenix
@onyx hare thanks brother. By the way Vodka is my alt
which library?
Yeah.
actually
@sick fable np
But then I can't know what the names of the channels will be.
it returns a guild
So I need it to send it in a random channel/ the channel the bot gets invited to.
get the first channel that has @ everyone permission to SEND_MESSAGES
OMG yeah.
Guys basically what happened to Members plus bot?
Guys basically what happened to Members plus bot?
@sick fable I'm a senior support there.
@sick fable I'm a senior support there.
@lilac gale can you help me wit it?
I just wanna know the reason of it. I wanna grew my server up
you should ask in discord-devs
So, M+ is a J4J bot. And discord doesn't verify J4J bots so it won't be able to grow after 7 October.
since its a upper decision
So it would be
So, M+ is a J4J bot. And discord doesn't verify J4J bots so it won't be able to grow after 7 October.
@lilac gale :(((
fuck invite 4 invite bots
^^
only scummy people use them
Lmaoo I only needed it to grow my server up๐
anyhow, i need to get back making my sharding/clustering
Wait.
Noice
How would I find the channels where everyone can send messages? @opal plank
I am up to my gfx designing
that's a sign that your server is dry and boring, you don't have to persuade people into joining it
Ok.
that's a sign that your server is dry and boring, you don't have to persuade people into joining it
@earnest phoenix mhmmmm, it's dey
Dry*
I'm pretty sure you're a helper on d.js discord right? @opal plank
how can i keep foreaching on a reaction over and over again until it finds someone who reacted with the same discriminator
you should use .find() if you want to find only one member and filter() for multiple assuming you're working with a collection
can i also filter it to see if they have similar elo in the db?
@onyx hare screenshot of the error please?
const { MessageEmbed } = require("discord.js");
module.exports.config = {
name: "report",
aliases: []
}
module.exports.run = async (client, message, args) => {
if (!message.member.permissions.has("MANAGE_MESSAGES"))
return message.channel.send(`No.`);
let User = message.mentions.users.first() || null;
if (User == null) {
return message.channel.send(`You did not mention a user!`);
} else {
let Reason = message.content.slice(bot.prefix.length + 22 + 7) || null;
if (Reason == null) {
return message.channel.send(
`You did not specify a reason for the report!`
);
}
let Avatar = User.displayAvatarURL();
let Channel = message.guild.channels.cache.find(
(ch) => ch.name === "reports"
);
if (!Channel)
return message.channel.send(
`There is no channel in this guild which is called \`reports\``
);
let Embed = new MessageEmbed()
.setTitle(`New report!`)
.setDescription(
`The moderator \`${message.author.tag}\` has reported the user \`${User.tag}\`! `
)
.setColor(`RED`)
.setThumbnail(Avatar)
.addFields(
{ name: "Mod ID", value: `${message.author.id}`, inline: true },
{ name: "Mod Tag", value: `${message.author.tag}`, inline: true },
{ name: "Reported ID", value: `${User.id}`, inline: true },
{ name: "Reported Tag", value: `${User.tag}`, inline: true },
{ name: "Reason", value: `\`${Reason.slice(1)}\``, inline: true },
{
name: "Date (M/D/Y)",
value: `${new Intl.DateTimeFormat("en-US").format(Date.now())}`,
inline: true,
}
);
Channel.send(Embed);
}
};
Why does it say bot is not defined am I blind?
oh fuck I forgot smth
yup
you haven't figured it out?
How do I access a variable outside of an foreach (js)
?
wdym?
so if i do js reaction.forEach(async u => { var user2 = u; }) console.log(user2)
like this maybe?```js
let foo = null;
collection.forEach(x => {
...code
foo = "something";
});
foo; // something```
var xd
you declare it outside, assign it in the inside
Don't mind me, im just bored.
that way you can access it outside of the forEach scope
@pale vessel yh but it just logs null
Will anyone help me now?
it doesnt log u
if you log it before the loop that is
you don't declare it inside the forEach
you have to declare it outside first:```js
let user2;
reaction.forEach(async u => {
user2 = u;
})
console.log(user2)```
Reminder for the future: DO NOT FORGET TO REMOVE DATABASE CALLS FROM THE SLAVE PROCESSES
specially when trying to run 70 of them

Who knows discordbot-script?
poor cores
heck
2020-10-04T10:32:39.138778+00:00 app[Worker.1]: at MessageCreateAction.handle (/app/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
2020-10-04T10:32:39.138779+00:00 app[Worker.1]: at Object.module.exports [as MESSAGE_CREATE] (/app/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
2020-10-04T10:32:39.138780+00:00 app[Worker.1]: at WebSocketManager.handlePacket (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:386:31)
2020-10-04T10:32:39.138780+00:00 app[Worker.1]: at WebSocketShard.onPacket (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:436:22)
2020-10-04T10:32:39.138781+00:00 app[Worker.1]: at WebSocketShard.onMessage (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10)
2020-10-04T10:32:39.138781+00:00 app[Worker.1]: at WebSocket.onMessage (/app/node_modules/ws/lib/event-target.js:125:16)
2020-10-04T10:32:39.138782+00:00 app[Worker.1]: at WebSocket.emit (events.js:315:20)
2020-10-04T10:32:39.138783+00:00 app[Worker.1]: at Receiver.receiverOnMessage (/app/node_modules/ws/lib/websocket.js:797:20)
2020-10-04T10:32:39.210782+00:00 heroku[Worker.1]: Process exited with status 1
2020-10-04T10:32:39.257025+00:00 heroku[Worker.1]: State changed from up to crashed
bruh
@pale vessel ok it works now, however if the if statement isnt true for all the reactions, how would u loop it again and again till it finally is true?
then it will keep on looping on every reaction
it won't stop until the collector stops
yh but i want it to keep looping till it finds someone not whenever someone reacts
i see
you can set a flag
but wait, do you want to stop the collector if that happens?
that would be simpler
wdym
you can close the reaction collector if it finds the match
yh
regardless of the given time
but would it close it for everyone else queuing ?
@slender thistle this is what i get when i try to pip the dbl
nvm then, dont stop the collector
i just need it to keep looping till it finds someone, and once it does it creates a channel witht hem
then you can do```js
let done = false;
collector.on("collect", () => {
if (!done) for (a of b) {
// something something
// if match
done = true;
}
});```
and that would keep looping until it finds one
lemme explain 1s
you can also check if the variable is set, if not then you set it```js
// outside loop
let user1;
// in loop
if (!user1) user1 = something;```
that way it won't overwrite each other while still continuing the loop
when someone reacts, it will filter the reaction so they cant match against them self or the bot. it will keep looping through the reaction till it finds someone with similar elo in the db. it wont stop the for loop cuz it still need to match everyone else reacting if ygm
you can do the same with user2
and you can check if both users are set
if so, stop for example
scrap the stop collector idea
i dont want it to stop cuz it will end the queue for everyone once 1 game is found
I have a problem. I made my bot in discord.js but everytime i run a command it send three responds
any idea how to arrange a queue from small to big without using .Orderby on c#
Says the respond to the command three times
or how to make this fucnction apply to all elements and not just one
public static Queue<int> arrange_big_small(Queue<int> q1)
{
Queue<int> q2 = new Queue<int>();
int smallest = q1.Head();
while (!q1.IsEmpty())
{
if (q1.Head() < smallest)
{
smallest = q1.Head();
}
else
{
q1.Remove();
}
}
q2.Insert(smallest);
return q2;
}
@earnest phoenix
const Discord = require("discord.js");
module.exports.config = {
name: "poll",
aliases: []
}
module.exports.run = async (client, message, args) => {
if (!message.member.permissions.has("BAN_MEMBERS"))
return message.channel.send({embed: {color: "RED", description: `Error: not have enough permissions`}});
const channel =
message.mentions.channels.first() ||
message.guild.channels.cache.get(args[0]);
if (!channel) {
return message.channel.send({embed: {color: "RED", description: `You did not mention / give the id of your channel!`}});
}
let question = message.content
.split(`${client.prefix}poll ${channel} `)
.join("");
if (!question)
return message.channel.send({embed: {color: "RED", description: `You did not specify your question!`}});
const Embed = new Discord.MessageEmbed()
.setTitle(`New poll!`)
.setDescription(`${question}`)
.setFooter(`${message.author.username} created this poll.`)
.setColor(`RANDOM`);
let msg = await client.channels.cache.get(channel.id).send(Embed);
await msg.react("๐");
await msg.react("๐");
};
when I type preix poll, channel and everything it sends the prefix, channel and the reason how can I fix?
So it dont send the prefix, command(poll). I just want it to send the reason
see?
@narrow kettle just use linq's OrderByDescending
@onyx hare what's the command you use to run Python scripts with
Will anyone help me?
Huuuuuuuuuh
Will anyone help me?
@earnest phoenix https://dontasktoask.com/
I want to make a fully functional bot on android for free

@earnest phoenix
Read it again

you don't need to mention me i'm here
android...
K
android 
Yup
are you using a bot maker?
step 1. get a pc/laptop
step 2. code
Any app or anything? Beacuse I dont got PC and advance coding skills
android is actually capable of running native code (i.e. c#) if it's compiled for ARM
you can run bots on old android devices you don't use anymore
Discord Bot Designer is a thing
but you get no support for it here
Discord Bot Designer is a thing
@slender thistle Worst tried it already
Interesting
I have made a bot using botghost.com but I cant Buy premium and it doesn't full fill my requirements
@narrow kettle just use linq's OrderByDescending
@earnest phoenix how do i use it? im using unit4 and it kinda cancels everything else
and yeah im forced to use unit4
using System.Linq; im using this if it helps but, no idea if that is what you mean
yeah it's located in the linq namespace
why are you ordering a queue in the first place though
a queue is, well, a queue
Can I code on android?
Which language is important?
How can I make Bot android?
coding on a mobile device is awful
its a part of some question i got, trying to do it but im going nowhere
@compact oriole BUT I will try
hitting a wall everytime i try something
this seems like an http://xyproblem.info/
Asking about your attempted solution rather than your actual problem
I will be doing this also
anyways, you can find samples for OrderByDescending on ms docs
please give me announcement code discord.js v12
no
๐ฆ
Rule 8, we don't give ready-to-use code
ah shit
ok sry
its using System.Collections.Generic, and i cant use it sadly
cuz its either this or unit4 and im forced using unit4


Can I fucking code on android? And make a bot with that code? ๐ก
coding on mobile is hell
get a development machine
Thanks for helping me that fast
(laptop / pc / vps with a gpu)
@earnest phoenix I dont have money
that's a you problem
program->make a bot->make money
I dont have that fucking piece of paper with a picture mad old man with circular glasses and Bald Head

tf
program->make a bot->make money
@narrow kettle not at all bro I will make free bot
are they referring to dollars
basiclly you can make a bot on mobile
@earnest phoenix no
a free bot != you can't make money
@narrow kettle thanks
ads, premium, etc
a free bot != you can't make money
@compact oriole I know
but it will be war harder than on pc or whatever
if you're 18 there's always OF 
basiclly you can make a bot on mobile
@narrow kettle any app or anything any idea?
heh
no idea
cry you got an af?
never programmed my phone before
@narrow kettle lmao
if you're 18 there's always OF
facts
i'm opening one when i turn 18
that is hot
genuinely not kidding
that's completely fine
fucking androids
if you're 18 there's always OF
@earnest phoenix
:awhat:
@earnest phoenix lmaoooo
this is painful ohmygod
android CAN be used as a development machine but not reliably. android is running on ARM and ARM isn't capable of what an x64/x86 CPU is capable of
there are bot makers out there for android but you'll get no support for it here because you don't have direct control over the code
if nothing suits you, well, that's a you problem; buy a development machine.
nothing is ever free
So hugs aren't free? :(
you get corona as a bonus 
depends on who you hug with 
An image has a transparent background and I want to fill the transparency with CSS.
it's that easy
background-color? ๐ค
^
background-color.
make the image a child of a div element and set the background color
not sure if background-color is going to work directly on the image
try it and see ig
sir can i host discord bot on phone
If you try hard enough
Okay, thanks
websockets are a mess on arm
not sure if it'll work
it's why a lot of libraries just straight up don't work
whats the issue
not sure if background-color is going to work directly on the image
@earnest phoenix no it isn't
Can someone help me do a command that restart the bot
process.exit(0) and have a process manager
My js knowledge is alert("hello world")
good for you
is this java script
H
it's browser javascript
It is
well ok
Ik bit of node
if you use a process manager you can just exit and the manager will restart it for you
or for sharded D.js bots client.shard.respawnAll()
sharding in d.js seems like a mess
why do people use d.js
of course it is
usually a lib would internally make an array of clients and wrap it around with a container client
@slender thistle i used a batch file to startup my bot, or if I have it in the editor I f5 it to run
Try using python -m pip instead of pip
How to check if args is an int
isNaN("string") returns true if the string isnt parseable to a number
means isNaN(args[whatever])
you need to parse it if you want to use it as a number
<% for(let i = 0; i < boats.length; i++) { %>
<div class="row">
<% for(let j = 0; j < boats[i].length; j++) { %>
``` I have this. I want to order the boats length in the other way. The first bot that will be there on the code should be the last bot.
I meant to use it for slowmode CMD
if (message.flags[0] === "off") {
What does this mean?
where did you take that from
how can i verify bot? :C
@lucid wharf
Q_____Q
rn 8 weeks
almost a month and a half
@sudden geyser no
8 weeks is almost 2 months
a few days off
Yeah around that
me waiting for verification
I've just realised
How can I connect the bot on a web? ยฌยฌ

when create new commands, it doesn't let me use spaces.
like in the commands
i can't call a command something with a space in it
what are you using? js?
yeah
yh
you are likely just getting the first word
and you havent even showed us how you call the commands

we cant guess what you are doing unless you show it so we can help
how to connect discord bot to my microwave?
bot hosted on smart fridge when?
How can I change a data
Sample:
database.push("data",{data1:"hi",data2:"hello"})
How can I do "data1" to "five"?
huh?
overwrite it?
I tried very hard but couldn't .c
how to connect discord bot to my microwave?
@flat pelican ยฌยฌ
you talking of an ACTUAL database or thats just a dummy foo name?
@opal plank not actula
put the project on USB and put USB on microwave @flat pelican askakskas
how to connect discord bot to my microwave?
@flat pelican It's really simple.... do you even know how to code ๐ ๐
npm quick.db
yeah, im not familiar with quickdb
sad
though i guess you can retrieve the old value data, change it on js, then delete data and push the new one data1
dummy variable names
oh it comes from the chinese
When i get rich one day by selling discord botus imma buy a smart fridge just to host a discord bot on it.
Why? pure flexing.
How do I make it so in my botinfo command, it would show the python and discord.py versions?
use version from the sys module for python version and discord.__version__ for discord.py version
>>> a = sys.version_info
>>> f"{a.major}.{a.minor}.{a.micro}"
'3.8.3'
``` :p
version outputs rather a big string and I don't think you want that
Will this work?
function runFunction(args) { return "test"; };
runFunction(args).then(result => { console.log(result) }); //Should log "test" to console
Or does it not work like that?
it should work
Oh okay good
lol
it's not an async function so .then() wouldn't work
ah right
https://gyazo.com/1a5740c9838c2494abf262ef07b9ff0a someone knows why it's like this?
Code -> https://pastebin.com/wYkvAh95
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
its better to use await i think
JDA is ugly
thingies
use getThingies()
If that doesn't work, fetch the thingamabobs from the watchamacallit
TypeScript 3.8 Release Notes
the package, i guess?
axios.get('http://api.icndb.com/jokes/random').then(data => {data.data})
This don't work??
js
returns a promise
lmao
ah nice
axios.get('http://api.icndb.com/jokes/random').then(data => {data.data})
This don't work??
Why this return promise?
show code
axios.get('http://api.icndb.com/jokes/random').then(data => {console.log(data.data)})
help
with what
client.on("message", async message => {
if (message.author.client) return;
if(!message.member.hasPermission("ADMINISTRATOR")) {
let confirm = false;
var i;
for(i = 0;i < badwords.length; i++) {
if(message.content.toLowerCase().includes(badwords[i].toLowerCase()))
confirm = true;
}
if(confirm) {
message.delete()
return message.channel.send("You are not allowed to send badwords here")
}
}
Guys I have 1 problem it says, its a bracket problem where tho?
is that the whole code?
learn to calculate 
yes
if so, close the event ๐ณ
learn to calculate :laugh:
@compact oriole stfu

you need to fix your indentation
@pale vessel that didnt work it gave me same problem
bro trying to flex with line count but half of lines empty
@pale vessel he has the correct count of {} (the empty lines are just shit)
he should add a ) to the end
fix your indentation though
please
if this was python you would've failed already xd
CREATE TABLE "Blacklist" {
"UserID" INTEGER,
PRIMARY KEY("UserID")
};```
anyone know if i'm actually doing this correctly ? ๐
INTERGER?
wouldn't it be int?
Its okay 

Ask your question here
what does ctx mean in py ?
How to start a bot when i be in discord developer create bot then how to do that pkease help
i don't understand ur english : /
How to code the,first step that get online
How do I get a bot developer bage
@earnest phoenix you cant
How do I get a bot developer badge
@earnest phoenix you are unable to get the Badge now unless you submitted your Application before August 19th
Toxico do you know a programming language
Getting banned F'd me ๐ญ now they wont give me it.
wdym
Not many i go in a informatik scool not many
Idk where

Can domeone send me the start of coding
CREATE TABLE "Blacklist" (
"UserID" INTEGER,
PRIMARY KEY("UserID")
);```
is it { } or ( )
for sql it is ()
thank you
but other dbs it might be different
Hi
also your invite is wrong
Smol brane ๐ง
-op
also your servers this bot is on is wrong
-ping
I'm alive!!!
your bot invite link is wrong
and reading that description you shouldn't add your "bot"
DM to help
@earnest phoenix here is a list of problems in your application
- your bot invite link is wrong
- also your servers this bot is on is wrong
- also your invite is wrong
- also your website is wrong
- your description is too short
you filled ONE of them right

Be self dependant
I just pinged you with the list
also, how did you make a bot if you can't even fill that in?
he sent a req to me too...
yea
troll
that is not a url
BIXXER your invite link is wrong, the field already has discord.gg/ so you need to put your server code, a example would be discord.gg/dbl (dont use this as its the invite for this server)
Literally everything is wrong on that form
hh
that ID doesn't exist
hi
Nope, it's pure bullshit, all of it.
that ID doesn't exist
So ehm Im tryna do a corona command and I got an err that const track = new NovelCovid();
const discord = require("discord.js")
const { NovelCovid } = require("novelcovid");
const track = new NovelCovid();
const Discord = require("discord.js");
module.exports.config = {
name: "corona",
aliases: []
}
module.exports.run = async (client, message, args) => {
if(!args.length) {
return message.channel.send("Please give the name of country")
}
if(args.join(" ") === "all") {
let corona = await track.all() //it will give global cases
let embed = new discord.MessageEmbed()
.setTitle("Global Cases")
.setColor("#ff2050")
.setDescription("Sometimes cases number may differ from small amount.")
.addField("Total Cases", corona.cases, true)
.addField("Total Deaths", corona.deaths, true)
.addField("Total Recovered", corona.recovered, true)
.addField("Today's Cases", corona.todayCases, true)
.addField("Today's Deaths", corona.todayDeaths, true)
.addField("Active Cases", corona.active, true);
return message.channel.send(embed)
} else {
let corona = await track.countries(args.join(" ")) //change it to countries
let embed = new discord.MessageEmbed()
.setTitle(`${corona.country}`)
.setColor("#ff2050")
.setDescription("Sometimes cases number may differ from small amount.")
.addField("Total Cases", corona.cases, true)
.addField("Total Deaths", corona.deaths, true)
.addField("Total Recovered", corona.recovered, true)
.addField("Today's Cases", corona.todayCases, true)
.addField("Today's Deaths", corona.todayDeaths, true)
.addField("Active Cases", corona.active, true);
return message.channel.send(embed)
}
};
Scary error
Error: const track = new NovelCovid(); ๐
Man after over a week of being a help vampire you'd think you'd at least learn to describe your damn errors right
Well, NovelCovid isn't a constructor, so...
Error is English
how the hell are we supposed to know
^^
maybe RTFM, dude. https://www.npmjs.com/package/novelcovid
Endph try just const normalName =
I just want a bot ๐ญ
IM NOT U BITCH







tho