#development
1 messages · Page 430 of 1
very bad idea
@forest stump if you try to save data yes
horrible idea
oof
heroku is just a bad host in every possible way
but otherwise its fine..
rn my bot doesn't save any data tho lol
but local hosting is best
is it free
imo
i dont wanna have my pc open 24/7 ew
local hosting is pretty awful lol
online hosting doesn't usually save data
my router stops working too often at night to local host lol
@trim saddle boi what drugs are you on
any hosting solution worth it's salt can hold data
any hosting solution AT ALL
my bot uses heroku + mLab
i use it until i can get back on linux
seems to work fine but the bot i'm using on it rn is extremely simple
Heroku is designed to be scalable with Dynos that can be created and destroyed at any point without interruption. The ephemeral filesystem reinforces this and encourages the usage of a database and other data stores for storage that multiple Dynos can interact with, especially when scaling. It's not designed to be a VPS.
also heroku wasn't designed to handle a bot
even hosting a single shard/dyno might still be too much depending on what you do
heroku sleeps your shit if it's inactive 
that's why people cheat doing requests to themselves
ok, i am fixing ehm... 2-5 cmds but now the bot online in release 😃
so you can add an http server to the load as well :^)
what is the best way to make dashboard for my bot ?
That's if you use a web dyno instead of a worker dyno. It (and similar services) are designed for a specific market that want it to work the way it does, however it is not designed with Discord bots in mind like you suggest.
like npm modules
like a web dashboard?
when my bot was in 10 servers i just had a loop to print to the terminal so it wouldn't sleep
yeah
express i guess
but now that its in 101 or something thats no longer an issue
@lone nymph
@stable crow
-report copied bot
@stable crow i copy of another bor
t
same help command and prefix even the name
thats the same bot
yeah
ooof.
-bots @low garden
@livid geyser
is added? I go to test him
owopup is a furry bot. OwO is an anime bot with other shit
sure same prefix, but not same bot
i meant he tagged the same bot that luca sent
may he will report you
not that your bot is the same as owo
owo's not a copyrighted name >:L
ye
the name can't be copyrighted if it is a different bot
i know
Doesn't matter what base was used
what about owo prefix
conversation over
if that was the case every bot with ! would be beaned
so
They are made in two different languages too
what can be copyrighted
that's like copyrighting the wheel
NOTHING
code
well that
@hot sleet code
wait
wait wait
pretty sure the only case would be if someone literally just stole your source code
99% of bots have same avatar command code is that means copyright
what's going on?, I got a report command from @sacred spruce and it said copied bot
Different licenses have different rules
if the code comes from a tutorial which allows copying however users want, no issues there
Some require a tieback to the original while some don't.
Is it sad that I have all of my commands in 1 class file?
can i copy luca code
yes
may i will hack it
yes
Why would you but sure
good luck copying closed source code
haha
can i hack oliys computer
offtopic much
if my bot gets declined i can resubmit it right
yeah
you need to fix whatever got you rejected
review the reason and fix it before resubmitting
ye ofc
yea you can
just check the decline reason
What’s the avatar update event called?
what api
JDA
UserUpdateAvatarEvent
Shoulda probably checked the docs before asking xD
maybe xd
literally searched with intellij
Neon 👀
yeah but the library for the bot
i use Eclipse, discord.js
Isn't neon from like 2016 xD
Ye, that one
Mars was before Neon I think
I’ll check
yes
Jet🅱rains™
Mars is from 2015
GetBrains, all incluse me
it's alphabetical
yep
Ooo

Never thought about that
An🅱roid version style
yEP
what will Google do when they run out of letters
Photon, Oxygen, Neon, Mars, Luna, Kepler, Juno, Indigo, Helios, Galileo etc

create new letters
^
Imma use java 2, for shits and giggles


Where do you guys put your vote event from the api?
I dont know but I doesnt work for me
i put in main.go
I put mine in DBLApiEvents.class
Hmmm
I have an issue with a JSON database. I'm using the code below to save it whenever I edit it, but it isn't working. What am I doing wrong?
var database = require('./settings.json');
function save() {
fs.writeFile('./settings.json', JSON.stringify(database), (err) => {
if (err) console.error(err)
console.log('Saved database!');
});
}
- don't use json for storing a lot of data 2. es6™
Why is bad to use JSON databases?
corruption
Ah, okay.
JSON files are prone to corruption and write locks which is not good if you're sharding
I suppose the same concept applies for SQL across shards but it's not as prone to corruption and it's easier to get data and write to it
Whenever I edit my bot's code it restarts it. Will that cause the SQLite database to be cleared?
no
Okay, cool. Thanks and sorry.
The database will be stored on disk. If you really plan on your bot to shard eventually, try and learn MySQL or another lib which acts like SQL but is non file based

HI HOW I CREATE MY BOT
Can you code?
NO
Then learn how
- Learn how to code
- Make a bot
OK
Try tutorials like codecademy (also why do you keep talking in all caps)
SoloLearn™
hello.. someone know how to make input space value block by argument?
argument 1 :
let args = message.content.slice(prefix.length).trim().split(" ");
if i use argument 1, i can use command to input args love : !example love
but, with argument 1. I can't use command to full input args : !example love fruits
"fruits" args not inputed to database, because blocked by split.
argument 2 :
let args = message.content.slice(prefix.length).trim().split("");
if i use argument 2, u all know.. the command will bring all with the values to call js, like : !example love
args will be call js : !example love.js , and the js can't call.
so, anyone know how to input full args love fruits to database?
i'm sorry if my english bad.
If you just want to get everything after the command you could probably do something like message.content.substring(message.content.indexOf(" ") + 1, message.content.length)
@shy rose GIVE ME YOU LINK
THX
also no need for caps
THE LINK NOT WORK
i edited done a typo
please turn off caps lock
^
oh yeah that
Are you going to stop talking in all caps @main temple it's getting quite annoying and spammy?
uh i cant afford the $400 a month cert on microsoft to have my product not say that
its not malware its jsut i cant afford the license to say its not ;-;
also maybe try get use to the web version they have basiclly the same features and saves can carry across
IM HAVE AVAST AND malwareBETY

http://im-sorry-is-this-not.allowed.org/455869778083708938/2.png i mean here it is
thats the desktop version
the only diffrence of features is it lets you build offline and has a module called sockets which is a bit more advanced
IF MY ANITVIRUS SAY IS HAVE VIRUS IM SAY TO MICROSFT OK IM NO YOU NOT ADD VIRUS
no caps ;-;
lol
OK IM USE IT
OK
@main temple Final warning, stop using caps
also if you wanna pay the license for me to not have that warning feel free to send me the 400 a month
lest see your app
lest see your app
yes?
why in #development
at start they asked how to make a bot then after that a huge chunk of shitpost got deleted
and here we are
Chewy, just wanted to say, your node editor bot builder is pretty cool.
lemme guess, they're too lazy to learn a language and you gave him your dbm
if your antivirus says its a virus your antivirus is probs bad 
inb4 they use norton
what liscense
Lets just talk about creating bots here, move the banter to #memes-and-media thanks
ok bb
kk
Are php files visable and downloable if someone tries to veiw it.
if you dont have php enabled in apache then yes
In the browser
if its enabled then will render the page (at server end)
afaik PHP is rendered server side
why did i i get so many dm
because many bots have the prefix !
from bots
I’m having some issues with the AvatarUpdateEvent
how so
So; I can get it to log the previous and new avatars (as well as their URLs) but I’m just not too sure how to get that sent to chat
im not super experienced with JDA but I imagine it's embed builder has a addThumbnailUrl() and addImageUrl() method
plug the image urls into an embed or something
Yeah, I know that. But the event had no method of getting a guild (that I’m aware of).
Thonk indeed
is there a broadstrokes MemberUpdatedEvent class you can use?
with just a before and after member object?
cause the guild would be a property of those member objects
How can I get the ID of an animated emoji without Nitro?
Alright.
Does anyone have any python examples for using the API for posting server count?

@slender thistle dbl.errors.Forbidden: Forbidden (status code: 403): {"error":"Forbidden"}
I'm guessing that has something to do with uh
tfw I forgot the name
Your token. 

well, first I had to convert it from self to normal
because my bot is not coded for self
usage
dblpy = dbl.Client(client, config['dbltoken'])
try:
await dblpy.post_server_count()
logger.info('Posted server count ({})'.format(len(client.servers)))
except Exception as e:
logger.exception('Failed to post server count\n{}: {}'.format(type(e).__name__, e))```
(It's not actually spaced like this)
I am having an issue.
When I attempt to post server count from the example from https://discordbots.org/api/docs#pylib I get a 403: Forbidden error.
The token is correct. I used the token from http...
Apparently, someone else is having the same issue too
Are you using it in on_ready event?
Posting the server count every 30 mins is a better idea rather than posting it everytime the bot is added to/removed from a server.
yes, there are ratelimits
It's like 60 per minute though. So pretty lenient.
"The 401 Unauthorized error is an HTTP status code that means the page you were trying to access cannot be loaded until you first log in with a valid user ID and password. If you have just logged in and received the 401 Unauthorized error, it means that the credentials you entered were invalid for some reason."
Typical.
so your api key is wrong.
it's right though
check again.
It was working before I downgraded aiohttp
Because the latest version of aiohttp breaks my bot into pieces, so I needed to downgrade it
wait don't you downgrade yarl not aiohttp
@shy verge aiohttp removes my code which mosts uses the simple .get() crap
erm, not removes
breaks
the latest one
wow
somehow my token changed
and I don't remember changing it
Unless I didn't realize
that I somehow pressed the change button
by mistake
@shy verge Nobody is getting through my 2FA.
they could just be the luckiest fucks ever to live
woah
okay, how do I disable the response messages
I don't want em spamming my terminal
async with aiohttp.ClientSession() as aioclient:
await aioclient.post(dblurl, data=dblpayload, headers=dblheaders)```
I tried adding aioclient.close() at the end
Anyone here know what I'm doing wrong?
turns out that example from #312614469819826177 was outdated
and alot of these examples are for rewrite
Maybe this is what happens when I ask for support at timezones nobody is on
What's worse is that I can't find documentation for this specific version of asyncio!
It's seems like it's buried with the latest version that breaks my bot
My embed descriptions aren't updating.. 👀 (discord.js):
if (command === 'poll') {
const poll = new Discord.RichEmbed()
.setColor('#4a5177')
.setTitle((msg.member.nickname ? `${msg.member.nickname}` : `${msg.member.user.username}`) + ' has started a poll!')
.setDescription(`\`What are better, carrots or pickles?\`\n\n:carrot: Carrots\n:cucumber: Pickles `)
.addBlankField()
.addField('Ending in..', `12 minutes`, true)
.addField('Multiple votes?', `No`, true)
.setDescription('React with the matching emoji to vote!')
msg.channel.send({ embed: poll });
}
(everything else is working.. but the .setDescription isn't ;-;)
I see.. 👀
.setDescription('React with the matching emoji to vote!')
instead of .setFooter
🤦 stupid me
sweet haha
@oak nova Eh.
@slender thistle ?
Yeah, my bot doesn't use self, or rewrite.
that's the problem
I think this is working now, so far
if r.status == 200:
pass```
calls it once every minute
Did you add asyncio.sleep(1800)? 
asyncio.sleep(60)
but yeah
it's part of my minute loop
which also keeps track of the status
discord status, I meant.
aiohttp.post()? Is aiohttp equal to aiohttp.ClientSession() or what
The problem I had with clientsession
was the "unclosed connection" crap
and the huge textwalls of what happened.
Try using async for posting as well.
Blame Python. 
The only language I am good at.
Took me 4 years to go from "shit" to "less shit"
great progress I made.
It looks like my line works now
not sure how "optimized" it is.
async with aiohttp.ClientSession() as session:
async with session.post(dblurl, data=payload, headers=dblheaders) as r:
# your stuff
await asyncio.sleep(60)
``` 
Or wait. 
Then just remove the as r thing. :^)
It should close itself. 
any idea what the max reason string length is?
for like member.kick("REASON")
or member.ban("REASON")
Dunno, that might be something for the Discord API server though, they'd know.
sweet alright I'll look there.
👍
@stray wasp I'm guessing it equals to when you manually kick/ban with a reason, it shows the characters left to use https://i.imgur.com/X8f7itM.png


You can give me the code to setrpresence my bot with the number of servers on which it is present in Js
Please
@earnest phoenix Not going to spoon-feed you. BUT I can give you documentation.
um what have you tried?
?
Juste the code for setpresence my bot with the server where he present
Nath I'm not going to spoon-feed you man
client.user.setActivity('YouTube', { type: 'WATCHING' })
now look at this code. This is the example they give you in the docs.
Ok
I don't understand the documentaion
little help here.
Magic jazz hands
/coins
🤦 what are you doing.
🤣
Noone can ever read docs 
do you see "name"
It's a really well done doc
@prime cliff or can they?
Perfectly readable
The JDA docs are literally my best friend at this point
Is he even here?
Presumably, he’s reading the docs
Hopefully.
@earnest phoenix your client has a guilds properly, that has a size property. connect the dots :^)
lol
:3
helloo everyone..
so, do u know how to know server name by id server?
example :
<@ its for member
<# for channel
what command for server?
some answer it can't mention server in chat
any other way?
thankyou 😊
you can't mention a server
any other way to know server name by id?
Not necessarily by the id but depending on the library you are using you can get a server object by its id and then get the name from there
^
hhm.. ok, thankyou for u'r answer here..
guys
for discord.py
how do I add the reaction
1⃣
because
it keeps telling me
Unknown emoji
when I do this
await self.bot.add_reaction(msg , ":one:")
where msg is the msg
is this async?
asyncio
don't I have to await
cuz its async
so I'm guessing yes
@ruby dust
is there anything special that I have to specifically import
this is the error I get
msg = await self.bot.say(embed=embed) await self.bot.add_reaction(msg,":one:")
this is what I wrote
xD
When adding reactions, you can either send the unicode for standard emojis, or send name:id, not <:name:id> for custom emojis. 
and since the async branch is no longer being updated, you can't react animated emojis
guys
it gives me a funky looking embed
when I call upon it
and then if I switch servers
and come back
it looks normal
weird
Scratches head
msg = await self.bot.say(embed=embed)
for i in ["1\u20e3","2\u20e3","3\u20e3"]:
print (i)
await self.bot.add_reaction(msg,i)
while True:
reaction = await self.bot.wait_for_reaction(message=msg)
emoji = reaction.reaction.emoji
print (emoji)
u = author
if emoji == "1\u20e3":
embed2 = discord.Embed(title='{} Statistics:'.format(username),colour=discord.Colour.purple())
embed2.add_field(name="Overview", value= Overview)
msg = await self.bot.edit_message(msg, embed = embed2)
elif emoji == "2\u20e3":
embed3 = discord.Embed(title='{} Statistics:'.format(username),colour=discord.Colour.purple())
embed3.add_field(name="Economy", value = Economy)
msg = await self.bot.edit_message(message = msg, embed = embed3)
elif emoji == "3\u20e3":
embed4 = discord.Embed(title='{} Statistics:'.format(username),colour=discord.Colour.purple())
embed4.add_field(name="Resources", value = Partners)
msg = await self.bot.edit_message(message = msg, embed = embed4)
else:
await self.bot.say('Wrong reaction')
oh
uhhhhhh
xD
how do I edit it correctly
also
when its edited
it has some words from the one before (if that makes sense)
hmm
like some words meant for the previous embed is still present
and it gives it the funky look
but once I switch and come bacj
its looks normal
that might be a bug with discord? idk. Its never happened to me before.
it's a client issue, yes
can i delete channel with js?
@earnest phoenix
// <Message> is what you defined in your message event
if (<Message>.guild.me.permissions.has("MANAGE_CHANNELS")) {
<Message>.guild.channels.get("ChannelID").delete();
}
missing a )
Thank you.
hi
Did you mean to send that in general?
Hmm I am trying to setup oAuth2 login with RocketChat
what should be the username field?
wut is rocketchat
is it a js framework for website?
no?
can discord get data localstorage then show up to console log?
what?
@wispy schooner I used your GuideBot's event handler
const evtFiles = await readdir("./events/");
evtFiles.forEach(file => {
const eventName = file.split(".")[0];
const event = require(`../events/${file}`);
this.on(eventName, event.bind(null, this));
const mod = require.cache[require.resolve(`../events/${file}`)];
delete require.cache[require.resolve(`../events/${file}`)];
for (let i = 0; i < mod.parent.children.length; i++) {
if (mod.parent.children[i] === mod) {
mod.parent.children.splice(i, 1);
break;
}
}
});```
and I get this
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at makeCallback (fs.js:167:11)
at fs.readdir (fs.js:878:14)
at RinClient.bind (C:\Users\Tish\Rin\client\index.js:118:32)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:746:11)
at startup (internal/bootstrap/node.js:238:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)```

oof
@wispy plank Ask in the idiots guide server? 👀
I'm having issue with Eris, can someone help me?
yes
I'm trying to connect my second bot, but this one doesnt seem to succeed in connecting to the API
wdym
also I tried the example and it didnt work
I mean I do bot.connect() then nothing
not even the emition of ready
sure
const Eris=require('eris')
const fs=require('fs')
const config=require('./conf.json')
const bot=new Eris(config.token)
bot.connect().catch(e => {
console.log(e)
process.exit(1)
})
bot.config=config
bot.commands={}
fs.readdir('./commands',(err,files)=>{
if(err){
console.log(err)
process.exit(1)
}
files.forEach(file =>{
var cmd=require('./commands/'+file)
cmd.names.forEach(name => bot.commands[name]=cmd)
})
})
bot.on('messageCreate',(msg)=>{
console.log('working')
})
bot.on('ready', ()=>{
console.log('ready')
})
tbh i would think of doing bot.connect at the bottom
even abal's example doesnt work so it's not because of the connect :x
Doesn't ready have to go before any other events?
make sure your token is valid
yeah that works fine for me, so either your token is invalid or your connection is bad
or that
how long are you giving it to connect
eris should eventually time out with the connection
add a .then(() => console.log('hi')) to the connect() call
and just let it run
so
I'm trying to improve my bot's mdn command
by using cheerio and getting the code snippet
const $ = cheerio.load('<pre class="syntaxbox">constructor([arguments]) { ... }</pre>');
.addField($('pre.syntaxbox'))
if anyone knows how to use cheerio please help
okay so, the .then logs something, but it doesnt trigger the ready event
try hooking your events before bot.connect()
although that wouldn't explain why the message event is borked aswell
shrugs
try running it on a VPS or on a different machine
or get someone to run it for you
boi
tho the old one was valid
mmhm
I mean, still valid
I know
okay, I meant, when I tried few minutes ago to connect with the old one, it was still valid xD
mhm
okay x)
How would I set up rich pressence for electron made apps?
How do I stop this from happening every time I start my express server?
const express = require('express');
const router = express.Router();
router.use((req, res, next) => {
let conf = require('../../server-config');
if (conf.firstRun === true && req.originalUrl !== '/install') {
res.redirect('/install');
next();
} else {
if (req.session.auth) {
res.locals.authorized = true;
res.locals.user = req.session.user;
} else {
res.locals.authorized = false;
}
res.locals.name = `${conf.website.name}`;
next();
}
});
router.get('/', function (req, res) {
res.render('index', { title: 'All posts.' });
});
router.get('/install', function (req, res) {
res.render('install', { title: 'Install your blog.' });
});
module.exports = router;
Its trying to send / as well as /install, and while it works and goes to install, it errors ;-;
hmm, you might not want that next call after the redirect
es6 pls
Hm, I need to use next(); though to get it to render install right?
Well, when you redirect to install it should call your listener for /install
I'm not entirely sure, test it
you can make specific middleware
that is just a function, so you can place it where u want it
like this https://media.turtle-bot.com/f/sjAhM.png
and i just place that where i need it
and if you were using it for yours it would be
router.get('/', <middle ware name>, (req, res) => { magic })
@sick cloud ^
Hmmmmm okay, totally doesn't make sense but okay 👌
Wait, fixed it by replacing next(); with return;, but okay :3

hello
hi
anyone know code for create category like create channel..?
for channel : message.guild.createChannel
discord.js?
yep
set the type as category
thankyou.. i'll try
u hall know, ow to get roleid discord? 😕
doing an eval
Lil' css question here, but my footer is overlapping content and not being pushed down by the <form> above it. 👀
How do I fix that so it gets pushed down?
Well I have this right now:
div.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
padding: 24px 72px;
}
Well my issue is it always sticks, when I only want it to stick to the bottom when the page has no content to push it off view ;-;
hmmmmmmm
i could recommend some to you
like bootstrap, materialize, or bulma
there are many
what you want is a "sticky footer", its not that simple, but there are many code samples for it
im pretty sure dbl uses semantic
bulma + parts of semantic
me neither
Hi. I created my 1st Discord App. Can someone help me or direct me to how I can add it to my server as a bot in an info channel? The channel is already made with default permissions and settings. I'm hoping it's pretty simple to just add the app/bot to the channel somehow ?
your bot should have an invite link that you can use to add it to your server, like you add any other bot
the only thing i see on the page/form for the app settings is a redirect url. that's where i put the url which contains the content I want the bot to display in the channel. i'm hoping that's right?
nope
i have an app client ID & secret. do i have to create a Bot User perhaps? (I skipped that since it said it was irreversible)
you can generate an invite link here https://discordapi.com/permissions.html
https://youtu.be/024upsEuHaU
🎥 Discord.js Bot Tutorial | Part 1: Installing, Promises, Docs, Joining Servers, Userinfo
I'll be explaining how to get started with creating your own Discord bot with discord.js. Install node.js before you watch this, obviously. This is meant as ...
Yes you have to make a bot account
The above video will go through setup
and then you have to actually get or code a bot software
a youtube video showed me a few lines of code for php. i believe that will grab the info via a message function and feed it to the bot
the url grabs some info from a forum for which i am a member of. (team trade history & updates)
so you want the bot to receive a command, fetch the url, and post the url contents, correct?
i'd prefer for the bot to automatically be checking for new info and post the new info. for example the very first time grab the last 200 entries, then every so often (I dunno, 30 seconds or 1 hour) post any new trades that have been made
but yes.
well, this is what you need and how it works
- a software in which the bot will be running 24/7
- software "logs in" to discord using your secret code
- your code will create a loop where it connects to the url and looks up the content
- cache the content or an identifier to keep track of what's new and what isnt
- post the content if the cache or identifier doesnt match any past posts
I will be creating other bots after, but I thought I'd start with 1 and make sure it works first then i can just alter the url for the others
so first of all you need something in which to keep the bot running 24/7, it can be a server, it can be your own computer, etc
so my 1st problem is....isn't the discord server/app or bot supposed to be where it is running 24/7 ?
then you need to decide for an environment and a language to work with
or can i put it in GitHub ? (will that work?)
bots are simply accounts, meaning you created a bot account
now you need something that uses that account to log in and do things
like people do
i'm not very knowledgeable about GitHub, if i create the code there...will that suffice?
is there any service that will let me run it for free? for like 4 months?
yes, amazon has a free for 1 year plan i think, and google cloud also has a free plan
season runs 3-4 months depending if we make playoffs or not
my bot runs in google cloud
similar to azure i presume?
yes
in essence, you're going to get a VPS, a virtual server to which you can connect to using a command line connection such as SSH
and in that server you're going to install the software you need
now there are many ways to connect to discord, and many different languages to work with, so you need to chose your environment
for example, i use node.js and javascript, someone else might use python, or .NET, etc..
be back in 20 min. game time. hae to stop some puckds
heyyyyyy
huhh
Stupid question but, is there a list of permissions like MANAGE_MESSAGES anywhere for discord.js?
There are on the docs
Yea look in docs for Permission flags
One second
Cheers 
No problem :)
An image field in Embed object. 
Easiest way would be to just hide a bunch of characters under it
That's naughty
Well you can't really do much else can you 👀
U can also put 300 letters with style: visible: false
I just put images (long URLs)
😂
Images with sha512 on their name 
Why don't you put something that describe your bot...:? 😂
I know you have the frame, but... 😂
Why describe your bot, when you just put the Bots' website
¯_(ツ)_/¯
Put something secret which leads to another secret which leads to another secret which leads to 20 other secrets
In the 300 chars
Lmao
lmao
Or just customize your bot pag with css
Which leads to joakims discord
Cause if your webpage fails, (for any reason), other people will know what your bot do... xD
That's how I get my 300
I just added style="border:0px #ffffff none;" name="nerobot" scrolling="no" frameborder="0" marginheight="0px" marginwidth="0px" height="720px" width="1240px" allowfullscreen to the iframe tag
and it hit the 300 character mark
Lmao
Ok
But my websites' link is a tad long
If you really want, just whack ?thisisjustmeextendingthelengthofmyurlsoithitsthe300charactermarkrequiredforthissite to the end of your URL 
lol
Or a base64 string for embeding a image
Ok so I know how to add like these things now but how do I add the image like
like this one
How do I add the big image using python
Have you tried looking at the documentation for the library?
hahahahahahh
Looks fine
Rush B with me 😂
Thats why I asked why'd you hide the link
😂
There's no point 
xd
Quick thing; please do something about the colour on the commands page
Gray blends in too much w/ the background
Also !clap has the wrong usage. !calp instead of !clap
❤
wut
admin already comes with the other permissions
I don't trust people enough to send them my website
LOL
Because they always inspect element to see how I did it
And then they probs steal it
lol
I only give to some people
u can make so it blocks the right clicks
oh man
Chrome had Ctrl shift i
i got your sites code


Also there is view page source
No commercial use 
LMAO
I want one that's no use at all
Did u do bots on me name
i can share my website beacuse no one wil lne ver waste their time trying to steal that 💩
lol
If it was I would credit the template artist
omg why it's white 😦
cause white is clean boi
and then theres my piece of shit 
Just doesn't look like that
👀 🔥
been focusing too much on the discord login integration then anything else 
wat site is that @frail harbor
¯_(ツ)_/¯
ftw
-.-
It's not easily possible to make a Discord login system w/ just HTML
I mean you can
but you'll also need to use jQuery, among other libraries
i can add and js
And then your Client and Secret is exposed
┬─┬ ノ( ゜-゜ノ)
Theres the login code 
¯_(ツ)_/¯
Atom
¯_(ツ)_/¯
People hate it for some reason
¯_(ツ)_/¯
I love it
There ya go ❤
u say that one more time and u are dead
Anything related to VC isn't the best thing in the world.
It's the absolute worst thing.
wati
Sorry - autocorrect.

lmao

I'm coded out. 🏃🏻 I need food
in discord.py, is there a way to change the bot's presence synchronized with the bot application going online? the on_connect event is not doing it fast enough
@ruby dust rewrite or async?
rewrite
in rewrite, you can pass activity as a kwarg into bot.run
as well as changing status?
what do you mean?
discord.Status
um... dont think so..
update your rewrite to the latest version
# Setting `Playing ` status
await bot.change_presence(activity=discord.Game(name="a game"))
# Setting `Streaming ` status
await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))
# Setting `Listening ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))
# Setting `Watching ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="a movie"))
ActivityType enum: https://github.com/Rapptz/discord.py/blob/rewrite/discord/enums.py#L216-L221
Activity class: https://github.com/Rapptz/discord.py/blob/rewrite/discord/activity.py#L80-L128
new stuff
oh lol not sure
status=discord.Status.dnd etc 👀 @ruby dust
that I know
So I have my bot running on two APIs, I'm having trouble letting my bot be able to reply to commands from I made in discordjs and others I made using the 2nd API
It only replies to commands made on the 2nd API but when I add a command for example I add a help command in my discord.js it doesn't read it :/
we will probably need to see some of the code
@mental solstice hey, could i ask you for some help?
i added a mute command to my bot, and it does not run. their is no error or anything.
if(command === "mute") {
if(!msg.member.roles.some(r=>["Assisting Coder", "Server Administrator", "Devs", "Head Administrator"].includes(r.name)) )
return msg.reply("Sorry, you don't have permissions to use mute command! You need to be null or higher! [#446679015999406081](/guild/264445053596991498/channel/446679015999406081/)")
}
if (msg.mentions.users.size === 0) {
return msg.reply("Please mentionned an user to mute/unmute")
}
if (!msg.guild.member(bot.user).hasPermission("BAN_MEMBERS")) {
return message.reply("The bot need to have perm BAN_MEMBERS to do this")
}
let mutedRole = msg.guild.roles.find('name', 'Muted')
let member = msg.guild.member(msg.mentions.users.first())
if(!member.roles.find('name','Muted')){
member.addRole('438780003883155497').then(addRole => msg.channel.send(`The user ${params[0]} is now muted`)).catch(console.err)
console.log(`The user "${msg.mentions.users.first().username}" has been muted from the server ${msg.guild.name}`)
}else{
member.removeRole('438780003883155497').then(removeRole => msg.channel.send(`The user ${params[0]} is now unmuted`)).catch(console.err)
console.log(`The user "${msg.mentions.users.first().username}" has been unmuted from the server ${msg.guild.name}`)
}
}```
@mental solstice and it comes down to that
What do you need to see? Because I have a lot
is there no prefix mike? or is that added in command variable?
the perfix is"/"
does your code know that?
That's very clean @earnest phoenix mine if I skid?
it says command === "mute"
@earnest phoenix did you do npm update
Lots of people forget to do that after making changes
are you using an ide by chance? im not very familiar with JS, and im not gonna look up all that stuff in docs 😃
discord.js
ide.. like VSCode? or are u just using a text editor
So if the person is an "Administrator" reply "Sorry, you don't have permission to use mute command!...."?
text editor
Erud he has the ! operator, which checks for a false bool
Oh okay I had a feeling I was looking at it wrong
@tall falcon no, when listing roles, and below it says "if'' means anything but the roles listed
nothing in that if (command === "mute") condition gets called?
and you have another working command if (command ===" othercmd") the code inside that works?
yes, but random user does not get role
oh
yeah (command === "clear")
if(!member.roles.find('name','Muted')){
member.addRole('438780003883155497').then(addRole => msg.channel.send(`The user ${params[0]} is now muted`)).catch(console.err)
console.log(`The user "${msg.mentions.users.first().username}" has been muted from the server ${msg.guild.name}`)
}else{
so your issue is in that code block?
i believe so
let me re-try
that could be why youre not getting an error, atleast
nvm, a member of the team fix it
👍
^^
thank you, and have a great day
{'results': [{'defAvatar': '1cbd08c76f8af6dddce02c5138971129', 'invite': 'https://discordapp.com/oauth2/authorize?permissions=8&scope=bot&client_id=247056469894103041', 'website': 'http://tink-bot.weebly.com/', 'longdesc': 'Full description coming soon.', 'shortdesc': 'A multipurpose bot for Discord.', 'prefix': '+', 'lib': 'discord.js', 'clientid': '247056469894103041', 'avatar': '92c5a2eaf21f3bf08c77f42b707ac07a', 'id': '247056469894103041', 'discriminator': '1744', 'username': 'Tink', 'date': '2017-04-25T18:29:32.653Z', 'server_count': 67, 'guilds': [], 'shards': [], 'monthlyPoints': 0, 'points': 10, 'certifiedBot': False, 'owners': ['198466968725094400'], 'tags': [], 'legacy': True}]
``` is what `await dblpy.get_bots(limit=1)` returns. Could anyone help how I can get `invite` part from there?






