#development
1 messages ยท Page 388 of 1
I'll just define it to make it easier
yep
Can the destination server be server=ctx.message.server.id??? or does it have to be name?
oh ok lol
Mine says discord isn't a module, even though I've done all the installing and stuff, as well as typing out the correct code.
are you trying to run discord.py?
Yes, I'm also a beginner at this so I literally cannot function
learn python
The module's the only error. ๐ค
๐
make something simple in python
can someone help with 24/7 bot activity?
await self.bot.create_role(name='Muted', permissions=perms, server=server, color=0xFFFFFF) Why would that, output with this: discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'int' object has no attribute 'value'
@edgy needle vps
@edgy needle language?
node.js https://glitch.com
java
I use a vps
also Donish
?
if you code java
Yep
Sure send whatever here
If you are looking for VPS. Here is a good list
https://www.scaleway.com/- Incredibly cheap but powerful VPSes, owned by https://online.net/, based in Europe.
https://www.digitalocean.com/ - US-based cheap VPSes. The gold standard. Locations available world wide.
https://www.ovh.co.uk/ - Cheap VPSes, used by many people. France and Canadian locations available.
https://www.time4vps.eu/ - Cheap VPSes, seemingly based in Lithuania.
https://www.linode.com/ - More cheap VPSes!
https://www.vultr.com/ - US-based, DigitalOcean-like.
Providing developers and businesses a reliable, easy-to-use cloud computing platform of virtual servers (Droplets), object storage ( Spaces), and more.
OVH provides everything you need for a successful online project: web hosting, domain names, dedicated servers, CDN, cloud environments, Big Data...
cuz im on a ue4 , and other 3ds shits course rn
Oh fuck
I recommend joining the jda server
Java Discord Api, are you sure you are using Java and not JavaScript?
im using java
bot.on(message, (message) => {
// im too lazy to type in a acc code so ya
});
that's javascript though
Dude
Yeah thats javascript
dunnnnnnn
Java and Javascript have nothing to do with each other. Except they share a similar name
Sorry I can't help you with js
I can though
What do you need help with?
If you want 24/7 uptime for js the best one imo is glitch. https://glitch.com/ @edgy needle
How do I get the free .me domain from github student?
is glitch free? @quiet bobcat
Yes
but how do i use it?
๐ค
ik i type node . to start the bot i n terminal
node .?
uh, don't personally use glitch but I know it's good
I don't remember how to
Look up a tutorial perhaps
np
How do I get the free .me domain from github student?
Nvm
How can I change the default help message in discord.py?
Is there a way to find out whether a user is a supporter/admin/dev of the dbl website....similar to how you find if a bot is certified?
https://discordbots.org/api/docs#users according to API documentation there is
ok, thanks ๐
oh yea...so there is....thanks!
I also want to make my own database on a similar concept but for a bot within the support server that isn't public soooo, i'll work on that
Think so
yeah, it was ๐
๐
How do you persist timers with rethinkdb so timers can run after the process exists?
or is it even possible?
hi
You are in a static function / not a class method @tidal grove learn python
Does anyone know how to get the avatar url of a user when they join or leave a server?
language?
embed.add_field(name='Name:', value='{}'.format(user.name) if user.id == '269758783557730314' or '402045095832059904' '{}'.format(user.name) elif user.id == '404748176801923102' '{}' else '{}'.format(user.name), inline=True) How come this fails, what did I do wrong?
value='{}'.format(user.name) if user.id == '269758783557730314' or '402045095832059904' '{}'.format(user.name) elif user.id == '404748176801923102' '{}' else '{}'.format(user.name)```
if user.id == '269758783557730314' or '402045095832059904' '{}:SAdmin:'.format(user.name)
???
You do know that because it's a custom emoji...we cant simply use :SAdmin: because we need to have the emoji ID wrapped in <>
I HAVE!!!
See?
OK so why is it giving a syntax error????
Or have I formatted the oneliner wrongly???
ohhhhhhhhhh
class User:
def __init__(self):
self.id = "123"
user = User()
print("a" if user.id == "456" or "789" else "kek")```
๐ณ
because the emoji isn't with the formatted user name ๐ณ
My bot
wrong
No u
???
You should learn python
YEA....I FIGURED!!!
I am learning it you know
finding decent online courses that are free isn't exactly easy!
print('{}'.format(user.name) if user.id == '269758783557730314' or user.id == '402045095832059904' else '{}'.format(user.name) if user.id == '123' else '{}'.format(user.name))```
this works
@inner jewel Can you help me ? I would add commands to my bot
"a" if a else "b" if b else "c"
OK! Thank you...
how to add commands
You don't need to commentate
@topaz fjord you are a economic class Turtle
bots can read messages but they can't send messages
oh yea....you can't mute a bot's DM
do !help
!help
rip
and close your ears oops too late
shhiittt
No im public
Amy who?
@spring ember JavaScript using discord.js
Sry JS is not my expertise
How do I mention a role in my embed?
Title?
field
Normally <@id>
Oh role?
yes
<@&id>
is the & supposed to be there?
Yes
@spring ember Do you know how to get a users avatar url in an embed?
k
Nope
is sad
i did
Like get an avatar from an embed or put one in?
@gilded blaze to get a users avatar url and put it in the thumbnail in an embed in js
in discord.js you would use displayAvatarURL
@trim plinth i dont want it displayed tho, i want it to show the avatar
?
@gilded blaze i know, i read what it says and it didnt help
ok.... ill try.......
@undone hearth it shows the avatar if you put it in a embed thumbnail or image
@nimble merlin I understand it works
Np
@trim plinth still doesn't work....can we call or something?
show your code
bot.on('guildMemberAdd', member => {
let membernum = member.guild.memberCount;
let log = member.guild.channels.find(\name`, "log");
if(!log) return member.guild.owner.send({embed: {
color: 16711680,
title: "Channel Error",
description:`โ Could not find log. There needs to be a channel named #log for DevBot to welcome and bye bye members.`,
fields: [
],
footer: {
text: "DevBot, made by MrDogeBro"
}
}
});
let welcomechan = member.guild.channels.find(`name`, "welcome");
if(!welcomechan) return member.guild.owner.send({embed: {
color: 16711680,
title: "Channel Error",
description: `โ Could not find welcome channel. There needs to be a channel named #welcome for DevBot to welcome and bye bye members.`,
fields: [
],
footer: {
text: "DevBot, made by MrDogeBro"
}
}
});
let server = member.guild;
welcomechan.send({embed: {
color: 65392,
title: "Gained User",
description: `Welcome ${member} to the ${server}. Enjoy your stay! We now have ${membernum} members!`,
image: {
url: member.displayAvatarURL,
},
fields: [
],
timestamp: new Date(),
footer: {
text: `DevBot, made by MrDogeBro`
}
}
});
log.send({embed: {
color: 65392,
title: "User Joined",
description: `${member} joined`,
image: {
url: member.displayAvatarURL,
},
fields: [{
name: "User ID:",
value: `${member.id}`
},
],
timestamp: new Date(),
footer: {
text: `Server now has ${membernum} members | DevBot, made by MrDogeBro`
}
}
});
});```
@trim plinth ^^^
Hasteeebiiin
???
membernum 
?
wait nvm
k
why do you escape `
?

btw this is what that code does to the welcomechan msg
didnt mean to
my bad
thats not in the code @inner jewel
it has no use in the code or in the code here
?
hmmmm
looks like py
i can help
yeah thats py
is it just not sending the message?
What won't work??
try replacing the emoji with it's id so if you do :(emoji): in a discord chat it will output with something....copy that and replace the emoji with it
no
???
this is a for loop generator
that isn't how add_reaction works
oh
you have to put in the actual emoji
is this rewrite or async?
looks like async
@hushed oyster no, you need len(client.get_all_members())
embed.add_field(name="Member Count", value=len(ctx.message.server.members), inline=True) That's what I have
this is for a guild
no
not the point
?
you don't understand
oh
he is trying to get every member of every guild
he wants all users
you're trying to get every member of that guild
Oh....
Well...
yourvar = 0
for server in client.servers:
yourvar += len(server.members)
?
no
yes
no??
??
not the optimal way
Or are we getting just one server's members?
lol
i do it like this: ```python
for s in client.guilds:
member_count = member_count + int(s.member_count)
channel_count = channel_count + len(s.channels)
oooooh
but guilds isn't in async
so I was right the first time
replace guilds with servers
then why are you using client, anyways
or what is your client var?
can you show the whole function?
one server's member count
len(ctx.message.server.members)
all of them
len(set(bot.get_all_members()))```
hope that helps
@brittle oyster are you using discord.Client or discord.ext.commands.Bot?
yup, so you have an on_message function?
which passes on a discord.Message variable
so you want a len(message.server.members)
yes
exacly
no
what exacly do you want?
for a current server or for every server that has your bot?
ooooh
so that's wrong
do you want a sum or by every guild
guild is server
How I can add commands to my bot ?
yes
How I can add commands to my bot ?
he wants a sum of all users
instead of await client.send_message(channel, len(message.server.members)) do await client.send_message(channel, len(client.get_all_members()))
well so you don't spam the api one solution would be: ```python
embed_string = "Users by guild:\n"
for s in client.guilds:
embed_string += f"Guild {s.name} has {int(s.member_count)} users.\n"
await client.send_message(channel, embed_string)
okay
just confused by that: https://monika.is-my-waifu.com/osuErcypa.png
well then use my solution above
yup
does any here code js?
not rly
rip
someone sure does
yes because it's a generator
you can't use a len() on it
yes
how would i get an avatar as a png with a size of 1024, i have this but its not working
msg.author.displayAvatarURL("png,1024")```
Is 1024 even available...
yeah it is
Last I checked the highest Discord does is 512
ofc you can put 1024 but it will return 512
How I can add commands to my bot ?
if your using that library read docs
I using Discord.Net
Is there a way to stop my bot from responding to other bots without changing the prefix???
oh I see now Discord only returns highest resolution of uploaded image 
if you pick a size that's higher
Wait
yeah but how do i do the command?
' is a prefix ?
or max of 1024 @elder rapids
but he just showed 2048 
uh idk what it is for python but for d.js it's if(message.author.bot) return to stop from responding to other bots
huh got to check that out
@hardy moon Doesn't work like that
Ah
i just get a webp still
Discord.Net user ๐ค
msg.author.displayAvatarURL("png,1024") <---- doesnt work
Just because I changed the prefix, doesn't mean that it won't respond to other bots
msg.author.displayAvatarURL(format="png", size=1024)
oh damn
It's as simple as not running the command if Author.Bot is true
oh ok
so if Author.Bot=True: return??
or would it be ctx.message.author.Bot=True...
sure if that works in your language
@elder rapids I take it back, it's 2048 https://discordapp.com/developers/docs/reference#image-formatting
mmmkay
is there not an easier way...I don't want to have to put that at the beginning of 48 different commands
make that about 60....
I have one if statement in my message receive that checks for bot being false
If it's false it will then proceed to find the command used and execute it
does your commands use startswith???
Yes I have a StartsWith in my message receive to check prefix
mine use @dusk verge.command
@nimble merlin you could do something with: http://discordpy.readthedocs.io/en/rewrite/ext/commands/api.html#discord.ext.commands.Bot.add_check
After that I split the arguments
ok
first argument is the command
he is using Bot framework and every command is it's own func
oh god
in my opinion, it's easier
Can't you just do what I do in C# which is just for looping all the commands which is put into a table and then check
?
nope...
web admins
not here
why web admins???
please read #rules-and-info
why not just DM/ping a mod?
How can I insert my bot on the site
...
please read #rules-and-info
bot.add_check(Author.Bot=False) That wouldn't work, would it?
so what would you want:
-> make a function that checks if a user is a bot, if is a bot return False if is a user return True
ok
would something (remotley) similar to bot.add_check(is_author_bot) work??
probably not...
and what is your is_author_bot function?
the avatar thing still giving a webp
smh
JackTEK: you don't have to, you need to write your own
just get avatar url
yeah
msg.channel.send(msg.author.displayAvatarURL(format="png", size="1024"))
wym
put the image in an embed
why do you want .png soooo baad
You do know webp is a better format than png
ยฏ_(ใ)_/ยฏ
But why do you need 1024 so bad
รดh javascript msg.channel.send(msg.author.displayAvatarURL(options={ format: "png", size: 1024 }))
mybe that
and is the original item you're fetching even the size of or higher than 1024
because it looks like shit
nah it's just your avatar
^
yes i made my avatar, its a 1000x1000
oh
i made it its 1000x1000
It's your avatar that looks like that
Discord doesn't return an image higher than the resolution of the image
that you made
yes
discord compressed it
Maybe Discord did something to it
@earnest phoenix check the code i wrote
it didnt work
oh
rip
that was in d.js
yes
i'm not d.js dev sooo
ah
lol im not either

lol same I don't program d.js
bot.add_check(check)``` I assume that this works since no error is given
lmao
That's not a function though Jack
....

i know nothing about python
smh
same....clearly
here's an example check func
Don't spoonfeed
ok....

^
Python Functions - Learn Python in simple and easy steps starting from basic to advanced concepts with examples including Python Syntax Object Oriented Language, Methods, Tuples, Tools/Utilities, Exceptions Handling, Sockets, GUI, Extentions, XML...
http://adam.is-no.fun/g3ksk6a @nimble merlin
ty
figured it out
A spoonfeed 
its supposed to be json
and then you put that as a decorator on commands
ahhh
no, it's an example
msg.channel.send(msg.author.displayAvatarURL({format:"png",size:"1024"}))
I see
ยฏ_(ใ)_/ยฏ
I want this : EctoBot 
anyone can help me host static html page on Ubuntu/CentOS?
No sorry
use apache to host one
ubuntu: sudo apt-get install apache2
centos: sudo yum install apache2
and?
Anyone can help me ? My friends try to add my bot but it don't works (error 403)
just put the html file in var/www/html?
yes
yes
what did you expect..?
def predicate(ctx: commands.Context):
check = ctx.message.author.Bot
if check.author_bot:
return True
return False
return commands.check(predicate)``` I guess that that *might* have worked since all of my cogs loaded and I got no syntax error
you just need apache/nginx and move files to that folder
I don't think it matters
as you see here https://i.alexflipnote.xyz/76f213.png
wait, I will need to type ls /var/www/html/ ?
How I can add commands to my bot ?
between CentOS and Ubuntu, CentOS would be better, due to less pre-installed stuff.
Tho Debian would be even better, commands are almost the same as Ubuntu
@upper ember ?
so use CentOS or Debian?
Debian, but your choice, I personally use it, that's all I will say
It's better to use an OS that you would feel more comfortable with using also
use Debian if you're considering Ubuntu at least
@hardy moon you have to add it, because you are the owner of the application
what are the differences?
I prefer debian
@abstract crystal thx
Debian and Ubuntu are the most influential Linux distributions ever. ... Asked to explain the difference between the two distributions, most users would describe Debian as an expert's distribution, and Ubuntu as a beginner's.
Here you go, easy explained
@upper ember nginx lul?
@abstract crystal How long it takes to list my bot ? I have created his at 16:00
oh, then use Ubuntu for sure
if you really want, take it to dms and maybe i can do it for ya
@hardy moon depends
If a bot will not respond to itself even though it outputs with the exact requirements for a command, does that mean that it will not respond to other bots?
Thx
@nimble merlin no because it treats them as usual users
wot
Wait, is that a: yes it will respond or a no it won't respond???
yes it will respond
that's annoying
wait what
wait....so, even though I added a function for it, it will still respond?
You added a function for author.bot check right
It should ignore all bots including itself because it should be identified as a bot to the lib also
your function doesn't work
yes yes it is
def predicate(ctx: commands.Context):
check = ctx.message.author.Bot
if check.author_bot:
return True
return False
return commands.check(predicate)``` So this doesn't work???
what?
wait a sec
@upper ember yes
@nimble merlin bot in lower case
@upper ember you'd probably want to follow this tutorial:
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
They're not installing the full LAMP stack
They're just doing apache and hosting a static page
What template system are those docs ๐
care to tell me them?
@elder rapids https://monika.is-my-waifu.com/lpzdNNdsb.png
thx
- bootstrap and prism
https://monika.is-my-waifu.com/ZNZgUozwS.png
hmmm
http works
https doesn't
Either force HTTPS with HSTS or idk
I think i force HTTPS...
Considering you link to images.discordapp.com you can't go to HTTP
I believe they use HSTS (or force HTTPS through other means)
By making HTTP go to HTTPS
how?
HTTPS internet yo
force redirect HTTP to HTTPS
how do I do that?
If you go behind CloudFlare it's easy to setup HSTS
I am using cloudflare
Then do that
how?
yes
Go to the crypto tab
I turn on "always use https"
Luki is an easy-to-use bot with commands that can be used for fun, moderation, games, and more!
not works...
and I enabled HSTS
Discord caches embeds
and those settings can take a bit to refresh throughout
^
If you don't have HTTPS on your backend server then choose flexible
Urole is null
Well, how do I fix that this error doesn't show? lol
try this @worldly aurora ```js
const Urole = oldRole.guild.channels.find("name", "logs");
Okay, lemme try
You need to actually check if the channel exists in the first place, not all servers have #logs
that too ^
wrong scope
well, lmfao
it should be in the event
oldRole doesn't exist on startup
@worldly aurora it should be inside the roleUpdate event, not at the start of the file
I pasted it wrong again, I guess
also theres no point in having async there
you only need async if you use await
^
do u know discord.js
or know JS ^
^
This chat is used for development, not for spoonfeeding or teaching basic principles of programming. If you know JS, then reading the discord.js docs should not be a problem as the docs are well written and laid out @earnest phoenix
DM the mod who muted it @frigid juniper
Oh ok thanks
Solace just told you no @earnest phoenix
; - ;
atomic (bool) โ Whether to atomically add roles.what does that mean exactly?
from discord.py (should apply): Whether to atomically add roles. This will ensure that multiple operations will always be applied regardless of the current state of the cache.
there are two ways to add/remove roles
one you set the roles, which depends on the cache and can cause race conditions
one you add/remove a specific role, a single role per request, but it's independent from the cache
the first endpoint allows adding and removing multiple roles in a single request
?
anyone know how to get colors for d.js embeds
Never ask if anyone can help, instead just post your problem and all of the information @brittle oyster
like the 6 digit ones
@earnest phoenix use a hex to decimal converter
kk ty
Hexadecimal to decimal converter helps you to calculate decimal value from a hex number up to 16 characters length, and hex to dec conversion table.
Yw
depends what it gonna do in it
If I make meh bot constantly change the role color to get a rainbow effect, will it show up on the role?
That's API abuse
^
wtf does this mean
ummm specifically what
Oh unknown message
now it suddenly stopped working
do what
Because Discord API is returning unknown message
yes
delete: {
a: ["clear", "purge", "del"],
d: {
desc: "Deletes the specified number of messages",
usage: ":(number of messages to be deleted)",
perms: "message",
},
f: (message, mess) => {
if (Number(mess) <= 100 && Number(mess) > 0){
let channel = message.channel;
message.delete().then((message) => {
channel.bulkDelete(parseInt(mess), true)
.then((messages) => {
embed.setAuthor(`Deleted ${messages.size} messages`, message.guild.iconURL);
embed.setFooter("");
message.channel.send(embed).then(message => message.delete(3000));
}).catch(reason => {
embed.setAuthor("I was not able to delete all specified messages due to API Limitations.", message.guild.iconURL);
embed.setDescription(`\`\`\`diff\n- Reason:\n${reason}\n\`\`\``);
embed.setFooter();
message.channel.send(embed);
});
});
} else {
message.reply(ej.wrong + " Please provide a number โค 100 and > 0");
return;
}
},
t: 3,
del: true,
},```
OH
Wait i think i got it
Didn't even need to tell you much
yeah it works now
Rubberduck debugging is great
nah I won't use that, no use to me
lmfao
So in Discord.js, if a bot tried to DM a member who's DM is turned off it'll give a warning, how do I avoid that?
try catch
@west current try and catch is good
I have domain (luki.xyz)
I bought it on namecheap,
I host website using this domain (using digitalocean Ubuntu vps),
can I do like luki.xyz/captures/nsjs72.png (become sharex custom uploader) without delete the website?
with delete?
Without*
https://a.lolisareinthe.club/okixmr.png
https://a.lolisareinthe.club/siuixa.png
But when I put "sagiri_message_seen" in A of my shit https://a.lolisareinthe.club/mkiuyl.png, nothing appear..
@upper ember You can fully do that by either integrating it into the site or if it's another process that hosts a webserver (on a different port) you can proxy it
๐คท
@trim plinth Thanks for the help, I already got the problem fixed.

SInce there was await in there, it wouldn't work if I used try{} and catch{}
I need to do .catch()
My bad for the ping
N I C E G R A F A N A https://a.lolisareinthe.club/puosv.png
help
my
Microsoft Visual Studio is not working
i paid 700USD
for that VS

how can i fix this?
any idea why this is happening when I try to install a npm package?
npm ERR! path C:\Users\Dylan\Desktop\test\node_modules\discord.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Dylan\Desktop\test\node_modules\discord.js' -> 'C:\Users\Dylan\Desktop\test\node_modules\.discord.js.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent```
i dont have a discord.js folder, trying to install it again.
I re installed nodejs too
If u can download it from GitHub
can anyone help me rn?
Basically this never happened before
I tried to run my help command which is ts help then i got this message
Ignoring exception in command help
Traceback (most recent call last):
File "C:\Users\Matt GT\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "C:\Users\Matt GT\Desktop\Discord Server\Tesla\bot.py", line 49, in help
await bot.say(embed=embed)
File "C:\Users\Matt GT\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\bot.py", line 309, in _augmented_msg
msg = yield from coro
File "C:\Users\Matt GT\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\client.py", line 1152, in send_message
data = yield from self.http.send_message(channel_id, content, guild_id=guild_id, tts=tts, embed=embed)
File "C:\Users\Matt GT\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\http.py", line 200, in request
raise HTTPException(r, data)
discord.errors.HTTPException: BAD REQUEST (status code: 400)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Matt GT\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "C:\Users\Matt GT\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 374, in invoke
yield from injected(*ctx.args, **ctx.kwargs)
File "C:\Users\Matt GT\AppData\Local\Programs\Python\Python36-32\lib\site-packages\discord\ext\commands\core.py", line 54, in wrapped
raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: BAD REQUEST (status code: 400)
the code for the help command is too long so i cant paste it
there are way too many commands
it happened while i was working on the bot
i added some new commands
discord.errors.HTTPException: BAD REQUEST (status code: 400)
what is it?
Research?
Probably, Embeds have special limits for example
r/dankmemes 2
How can I put commands into catergories in discord.py or replace the default help command?
Preferrably custom help.
Thanks, then I just make a command with the contents?
And it follows the pm_help=True rule still?
how do I setup this page to be the 404 page?
https://luki.xyz/404.html
what are you using?
app.use(function(req, res) {
res.status(404).sendFile(__dirname + '/404.html');
});```
something like that i think
if ur using express
that's why I asked what they're using
ik
uh the only thing that's missing is the next param, I think that's supposed to be standard for middleware
@upper ember henlo
@karmic parcel I created this file on /var/www/html
I wrote in it only ErrorDocument 404 /404.html
I have 404.html file on /var/www/html/
and that's not working
do you have it serving html or does it start serving /www/
wdym?
uh, your document root is set to /var/www/html?
no..
You can probably set it in the config file for the site
instead then
try looking at /etc/apache2/sites-available/default
unless you modified it
i need some help
Yesterday I created a bot but it remained diconnected all night and it has been declined can someone tell me how to let him connected ?
do you use a vps?
You need to have a server or vps that keeps it online
via pm2 or screen (most popular options)
^^^^^^^
Thx
can someone help me?
i want to make my bot send all the help messages and once but it sends them one by one
example.
y!help
2 seconds later
y!ping
and so on..
language : JS
the code is :
message.member.sendMessage('y!help - displays a list of commands')
message.member.sendMessage('y!ping - tests the ping of the bot')
but when i try
message.member.sendMessage('y!help - displays a list of commands
y!ping - ')
it does not work
@hardy moon connect?
What language?
french
@edgy needle use \n for line breaks
Code language
i want them all at once
I created my bot now, I haven't a code language
^ makes no sense
on the discord page? @hardy moon
So, I want my bot to add an emoji next to a users name in a few commands (like info etc) if they are a supporter, author, admin, mod etc etc....but I can't think of an efficient db setup for this (setting the status requires a command BTW) does anyone have any pointers or tips for an efficient system that actually works in discord.py async????
you need to choose a programming language for your bot, then choose a library and write code for it
@inner jewel /n does not work
oh
@inner jewel Have you get my bot link ?
em
@hardy moon do you even have code for your bot?
no
eh
-_-
how ?
do you know any programming languages?
discord.js is pretty easy @hardy moon btw
...
@earnest phoenix do you use js?
well
they're easily outdated
maybe
https://anidiots.guide @hardy moon
thx
mostly I do because I don't wanna work too much atm
also the first link is idiots guide
I REALLY hate to be (kind of a hypocrite) cocky but you REALLY shouldn't be trying to create a bot unless you at least have a reliable source of language info....
@inner jewel Can you give me your ID in private message ? That way I'll give you acces to my bot and you can help me because I understand nothing xD
Lol
Hi, I am really new to discord bots. I wanted a bot that functions by reading specific stats off a website. The website offers API keys (please click here to see them https://coinmarketcap.com/api/) already with the formatting and information I was looking for. But where do I go from here.
Here is a picture of a functioning bot that is working, nobody in the discord can tell me where it came from.
I dont care about the pictures
you need to make a GET requests to the site's api using the language of your choice
Ok it has GET on the site
Can we keep this in laymans terms. I am kind of dumb with this stuff
okay
there are 2 main types of http requests
GET for getting data
and POST for sending data
you need to use the GET type inside your language to get the data you want
what programming language are you using? (e.g. javascript, python, c)
I dont know how to program. I didn't know it would be that intensive
but I think I found one a second ago, that runs what I am looking for
if you just want a bot that works, there are some here https://discordbots.org/search?q=tag: Crypto
otherwise you'll have to learn how to code
@tame rivet What about the link I found? Could that be moved into its own bot under the first folder
dude you should learn how to code first
I see that's python
learn it
afterwards learn how to use discord.py, link: http://discordpy.readthedocs.io/en/latest/
(which you can download at https://github.com/Rapptz/discord.py)
yep
my question is do you know any coding languages?
hi i got a question
?
basically
i am making a bot
and
i want a help command
with an embed
language?
how do i do embeds?
first thing
discord.js
umm damn it
https://anidiotsguide_old.gitbooks.io/discord-js-bot-guide/content/examples/using-embeds-in-messages.html
ty
everyone using js and I am jda
np
message.channel.send({embed: {
color: 3447003,
description: "A very simple Embed!"
}});
wait
how can i do it as a command?
ik how
use RIchEmbed it is much more simple
?
Any suggestions for more emotes???
lol
I'm allowed to use them
Last I checked...there were no copyright/TOS rules against it
whatever you say
lol
huh???
You wanted to make the dbl thing right?
Sorry if I don't remember something...my mind is like jellow (or whatever americans call it) right now
yes
Yee
I remember the convo now ๐
:3
ok cya
technically some of these emotes are used on the website and technically they are covered by copyright and TOS
but not sure lul
Should I bother asking???
idk really
If i'm breaking a rule...I would remove them....although I would have to make new emotes but oh well




