#development

1 messages · Page 788 of 1

modest maple
#

in front of the call

#

unless ur doing a task

#

which is asyncio.create_task(func()) (running event loop)

amber fractal
#

mmLol require("requests")(url).on("data", (chunk) => console.log(chunk))

zenith orchid
#

i'm used in eval, result: { run: [AsyncFunction], conf: [Object], help: [Object] }

But i'm use this code in commands and have a err
require("../user/ping.js")
Err = cannot find module

quartz kindle
#

the file path is wrong

amber fractal
#

Is require relative to the file the require was called in or the root program file?

zenith orchid
#

Command path and eval path is equal

ruby talon
#

@modest maple the project is a 1man proj and is for my first year of informatics on high school. (5th year)
The general idea is that the arduino will send a POST request to the REST API when the PIR sensor gets triggered.
Then you can view all the requests and data from a UI on ur pc.

Well, thats my project. My class mates have that they can turn a light on true a website that is hosted on the arduino.

modest maple
#

noice

ruby talon
#

Mine might be the guy she tells you not to worry about meme, but my project is that guy.

#

lmao

zenith orchid
amber fractal
#

I see different files tho

zenith orchid
#

Yes different files. But in the same path

amber fractal
#

I was thinking that was something different

#

Can you show me the file tree regardless?

zenith orchid
#

Oky

amber fractal
#

where is the file that you have require("../user/ping.js") in that creates the error

#

app.js?

earnest phoenix
#

How do I adapt php infrastructure to node.js?

#

Is there a short document?

zenith orchid
#

in dev category @amber fractal

amber fractal
#

Oh

zenith orchid
#

red... and ret...

amber fractal
#

I'm not entirely sure then

#

if ping.js exists in user anyways

zenith orchid
#

How

earnest phoenix
#

@zenith orchid sen türk müsün?

#

aa sen codare daydın

#

english only here please

zenith orchid
#

+1

quartz kindle
#

@zenith orchid try console.log(require.resolve("../user/ping.js"))

zenith orchid
#

Return /app/commands/user/ping.js

quartz kindle
#

in eval or in the commands?

zenith orchid
#

in command and eval

quartz kindle
#

both the same?

#

and the file ping.js exists?

zenith orchid
#

Yes

quartz kindle
#

are you on glitch?

zenith orchid
#

Yep

quartz kindle
#

no idea then

#

try requiring other commands

zenith orchid
#

Okey

#

Thx

#

But Test bot on the Glitch. Main bot is on the my server.

earnest phoenix
#

how i can do a db in glitch?

#
"Bot in py" 
zenith orchid
#

Py is not supported in glitch.

amber fractal
#

You sure about that?

zenith orchid
#

Wtf

delicate zephyr
#

Glitch can run a lot of things

#

people just use it for discord bots even though its meant for web dev

zenith orchid
#

True

modest maple
#

glitch can be used for python

#

altho not advised

#

but then again glitch isnt advised at all

zenith orchid
#

I heard first time

floral bloom
#

Discord.js
Is there a way to make an 'infinite' reaction collector? I want the user to be able to keep clicking reactions and have the message edit and there is no end to it. But the only working way that I know is to have hundreds of lines of code and eventually it will end. I've been trying for a while and haven't found out how to do it.

Ping with response, please.

earnest phoenix
#

How can I check if someone has a higher role than someone else, for example when using the kick command?

summer torrent
#

which library

#

@floral bloom remove time option

mystic violet
#

Im trying to install dblapi.js and cleverbot-free but something with them are uninstalling eachother when I install one

#

like

install dblapi
install cleverbot > uninstalls dblapi

#

and vise versa

#

idk whats going on

floral bloom
#

@summer torrent Not what I mean. I have a bunch of awaitReactions and if else in my code.

grizzled raven
#

@floral bloom use the messageReactionAdd event lol

#

store data as variables in the client object or somethijg

#

then access them in the event

floral bloom
#

I mean... I could...

#

I just don't know how efficient it will be...

minor kelp
#

im getting this using tweepy and honestly, idk how to fix it.

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/discord/ext/commands/core.py", line 79, in wrapped
    ret = await coro(*args, **kwargs)
  File "/usr/botv2/cogs/twitter.py", line 135, in blocked
    for block in api.blocks():
  File "/usr/local/lib/python3.6/dist-packages/tweepy/binder.py", line 250, in _call
    return method.execute()
  File "/usr/local/lib/python3.6/dist-packages/tweepy/binder.py", line 191, in execute
    six.reraise(TweepError, TweepError('Failed to send request: %s' % e), sys.exc_info()[2])
  File "/usr/local/lib/python3.6/dist-packages/six.py", line 702, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.6/dist-packages/tweepy/binder.py", line 189, in execute
    proxies=self.api.proxy)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 519, in request
    prep = self.prepare_request(req)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 462, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
tweepy.error.TweepError: Failed to send request: Only unicode objects are escapable. Got <generator object to_unicode.<locals>.<genexpr> at 0x7fca7813a1a8> of type <class 'generator'>.
#

Never had it before.

quartz kindle
#

@floral bloom recursion exists

rancid nymph
#
   const prefix = "c.";

   if(!message.author.bot) return;
   if(!message.guild) return;
   if(!message.content.startsWith(prefix)) return;

   const args = message.content.slice(prefix.length).trim().split(/ +/g);
   const cmd = agrs.shift().toLowerCase();

   // c.say hello my name is stan 
   // say
   // [hello, my, name, is, stan]
 }
  if (cmd === "say") {
      if (message.deletable) message.delete();

      if (args.length < 1)
          return message.reply("Nada a dizer?").then(m => m.delete(5000));

  const roleColor = message.guild.me.displayHexColor === "#0c0c0c" ? "#e51515" : message.guild.me.displayHexColor;

  if (args[0].toLowerCase() === "embed") {
      const embed = new RichEmbed()
          .setColor(roleColor)
          .setDescription(args.slice(1).join(" "))
          .setTinestamp()

      message.channel.send(embed);
  } else {
      message.channel.send(args.join(" "));
  }
}```
#

this code is right and wrong at the same time if somebody knows how to fix i will be happy

summer torrent
rancid nymph
#

its not this :/

floral bloom
#

@quartz kindle Hm?

sudden geyser
rancid nymph
#

its a problem whit the {}

#

yeah but when a remove that a new problem surge

sudden geyser
#

then you need to fix the syntax

quartz kindle
#

if a new problem appears, that means the problem is fixed lol

#

you cant just not fix a problem to prevent another one from appearing

rancid nymph
#

yes i solve one to surge other

quartz kindle
#

yes, and then solve the other too

rancid nymph
#

lol

#

gonna try

quartz kindle
#

@floral bloom you dont need hundreds of lines and if elses of repeating code

#

use recursion

minor kelp
#

uh

#

anything for my error?

floral bloom
#

I've tried to think of a way but can't.

#

Not one that works at least.

rancid nymph
#

and i dont know how i fix

quartz kindle
#

@floral bloom js async function reactions(message,page) { let m = await message.edit(page); let r = m.awaitReactions(someFilter); reactions(m,pages[r]) }

#

edit message with page then await reactions then run itself again

minor kelp
#
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/discord/ext/commands/core.py", line 79, in wrapped
    ret = await coro(*args, **kwargs)
  File "/usr/botv2/cogs/twitter.py", line 135, in blocked
    for block in api.blocks():
  File "/usr/local/lib/python3.6/dist-packages/tweepy/binder.py", line 250, in _call
    return method.execute()
  File "/usr/local/lib/python3.6/dist-packages/tweepy/binder.py", line 191, in execute
    six.reraise(TweepError, TweepError('Failed to send request: %s' % e), sys.exc_info()[2])
  File "/usr/local/lib/python3.6/dist-packages/six.py", line 702, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.6/dist-packages/tweepy/binder.py", line 189, in execute
    proxies=self.api.proxy)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 519, in request
    prep = self.prepare_request(req)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 462, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
tweepy.error.TweepError: Failed to send request: Only unicode objects are escapable. Got <generator object to_unicode.<locals>.<genexpr> at 0x7fca7813a1a8> of type <class 'generator'>.

how to fix ;-;

floral bloom
#

Hmm, I'll try it.

minor kelp
#

help me tho :<

quartz kindle
#

i dont python

minor kelp
#

aaa

quartz kindle
#

@rancid nymph you need to fix your brackets

#

for every { you open, you need to have a } to close it.

rancid nymph
#

i know

quartz kindle
#

your code is either missing closing brackets or you have too many of them, or in the wrong places

rancid nymph
#

going to see that

quartz kindle
#

you shuold also fix your code's indentation

#

you can simply copy and paste your code into some js beautifier/formatter

#

it will make it much easier to see where the problem is

rancid nymph
#

ok tks

#

even using the beutfier its still wrong :/

west spoke
#
            channel = author.voice.channel
            vc = await channel.connect()
            guild = ctx.guild
            
            source = discord.PCMVolumeTransformer(
                discord.FFmpegPCMAudio("tts2.mp3")
                )
            sound = vc.play(source)
#

No errors, but it doesn't play the file.

#

am I doing something wrong?

earnest phoenix
#

how do i reset every single db that existed in quick.db?

#

do i foreach and then delete them

warm marsh
#

delete the db.sqlite?

earnest phoenix
warm marsh
#

Or whatever it's called, json.sqlite.

earnest phoenix
#
["command"].forEach(handler => {
    require(`./handler/${handler}`)(client);
});

TypeError: Cannot read property 'forEach' of undefined Im getting this error for this block of code

#

any idea why?

prime cliff
#

["command"] is undefined

earnest phoenix
#

welp idk how to fix that

prime cliff
#

wha what are you trying to do in the first place

earnest phoenix
#

command handlers

#

im brain dead from school so idk

prime cliff
#

Yea you probably should not code with a dead brain then bigbrain

earnest phoenix
#

True, but I wanna get this done before this weekend EmiliaSigh

earnest phoenix
#

hi I'am write XP system to SQL message.memeber.id or message.author.id

#
con.query(`UPDATE **** SET xp='**', lvl='**' WHERE id='${message.member.id}' `)

con.query(`UPDATE **** SET xp='**', lvl='**' WHERE id='${message.author.id}' `)

#

author or member ??

marble juniper
#

author

#

if you just want the id you don't need the member object of the message author

#

since that doesn't include the id execpt you do message.member.user.id

#

only the user has the id

#

@earnest phoenix ^

earnest phoenix
#

thanks

#

🙂

earnest phoenix
#

help meee ```js

con.query(SELECT * FROM globalxp WHERE id = '${message.author.id}', (err, rows) => {
if(err) throw err;

          let sql;

          if(rows.length < 1) {
            sql = `INSERT INTO globalxp (id, xp) VALUES ('${message.author.id}', ${xpadd()})`;
          } else {
            let xp = rows[0].xp;
            sql =  `UPDATE globalxp SET xp = ${xp + xpadd()} WHERE id = '${message.author.id}'`;
          }

          con.query(sql, console.log);
        });```
#

when i get xp then i don't rewrite the current xp met but simply write it to the current xp

#

for example: my xp 20 and i get 30 xp that sql 2030 writes like this and shouldn't

#

I should add the two values ​​and that would be my new xp

ruby talon
#

@west spoke shouldn't you await the play?

tight plinth
#

Every video is unavaible with ytdl-core, why? (djs v12)

restive furnace
#

ask in ytdl supoort

tight plinth
#

Y nit

uneven wyvern
#

hm it works for me tho

safe nacelle
#

all of my bot's modules fail

#

all modul error

#

was working yesterday

amber fractal
#

Python people (I tried the entire first page of google and nothing worked) I'm getting this error WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available (Python 3.7.6)

#

This is when trying to install numpy (I was getting a ModuleNotFound error while attempting to import it)

quartz kindle
#

windows or linux?

safe nacelle
#

my pc ?

#

or bot ?

#

my bot linux

#

and all moduls error

quartz kindle
#

that was for steven lol

#

i cant help you denis, if you dont provide more information, what is the error?

amber fractal
#

Linux. Ubuntu

#

16.04

safe nacelle
#
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
at Object.<anonymous> (/app/server.js:36:15)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)```
#

there is no problem in a module all of this has happened on the line

#

pnpm i modulname

#

I do and I think it is improving

#

@quartz kindle

mossy vine
#

npm i node-fetch

#

to install it

quartz kindle
#

@amber fractal are you building python from source?

amber fractal
#

If by that you mean I used the tarball then yes.

quartz kindle
#

well, from what i understood, its a version mismatch between the system's openssl/libssl and python's requirments

#

try installing a newer version of openssl

safe nacelle
#

.

amber fractal
#

When I ssh -V returns OpenSSH_7.2p2 Ubuntu-4ubuntu2.8, OpenSSL 1.0.2g 1 Mar 2016

#

I'll try it tho

quartz kindle
#

try this

amber fractal
#

Will I need to uninstall my current python 3.7 ?

quartz kindle
#

i dont think so

amber fractal
#

Also, I've been having another issue. Every new terminal I start I need to source /etc/environment for any commands to work, so I must've messed up my env variables, but I have no idea how to fix that

quartz kindle
#

welp, i found this

#

One thing you are mistaken about is that /etc/environment requires a reboot to reload. This is incorrect. The only time the file is read is on login, when the PAM stack is activated – specifically pam_env.so, which reads the file.

Logging out and back in would apply the changes – and in fact you must do this if you want all your processes to receive the new environment. All other "solutions"2 will only apply the environment to the single shell process, but not to anything you launch through the GUI including new terminal windows.1

west spoke
#

@ruby talon I tried that

sly bone
#

Sir

west spoke
#

It says "NoneType cannot be used in await statements"

sly bone
#

Where do I put my veneration. Code

west spoke
#

what

sly bone
#

Verified code

#

Where too I put my at

#

?

west spoke
#

uh

#

that's the error I get when trying to await the vc.play

sly bone
#

K

#

vc.play

blissful scaffold
#

Leo, do you mean your bot token?

sly bone
#

vc.play

#

God

misty rune
#

am i the only one having issue with vote webhook ?

blissful scaffold
#

Or are you looking for help with a bot that you added to your server?

sly bone
#

Yes

blissful scaffold
#

You are on the wrong server, we are not a support server

sly bone
#

I can't verified

west spoke
#

@flat pelican could we get a -wrongserver

flat pelican
#

-wrongserver @sly bone

gilded plankBOT
#

@sly bone

Hey! We think you have our server mistaken. We do not provide support, help, or advice for any bot. You need to click on the "Support Server" button on the bot's page, not the "Join Discord" button at the top of our website. If there isn't a button that says Join Support Server, then we can't help you. Sorry :(

west spoke
#

Oh they finally changed it

#

used to be pokecord

blissful scaffold
#

No more pokecord xD

west spoke
#

honestly I thought pokecord was more relevant cause it was always breaking

steel heath
#

who changed that image to Luca xd

#

Luca's support server is here

#

people will be like: "oh luka? sure... tf its the same place"

west spoke
#

^

#

Is keep the pokecord example tbh

earnest phoenix
#

how can i replace @everyone role name inmember.highestRole code? I just tried .replace('@everyone', '') but not worked..

quartz kindle
#

what are you trying to do?

ruby talon
#

@west spoke shouldn't the author callback be ctx.author.,,,

west spoke
#

Wdym

ruby talon
#
            channel = author.voice.channel
            vc = await channel.connect()
            guild = ctx.guild
            
            source = discord.PCMVolumeTransformer(
                discord.FFmpegPCMAudio("tts2.mp3")
                )
            sound = vc.play(source)

@west spoke from where do you retrieve your author obj?

west spoke
#

author = ctx.message.author

#

I'll try it without the message

#

but it connects just fine

ruby talon
#

Ait.

west spoke
#

though it just doesnt play the audio file

ruby talon
#

I'm currently on mobile tho, so its pretty hard to read.

west spoke
unique nimbus
#

I mean

#

wait

amber fractal
#

@quartz kindle you're a legend thanks

unique nimbus
#
voice = get(self.bot.voice_clients, guild=ctx.guild)
voice.play(discord.FFmpegPCMAudio(f"{url}"))
voice.volume = 100
voice.is_playing()

@west spoke

west spoke
#

Does it need to be a url?

unique nimbus
#

no

west spoke
#

Ok

unique nimbus
#

that was taken directly from my stream command

west spoke
#

ah ok

#

lemme try

unique nimbus
#

it should work

digital fjord
#

How can i make a ?sayEmbed command - send me source code if possible :D

west spoke
#

would my vc object be the same as your `voice object

#

@digital fjord no, we aren't going to spoonfeed code.

ruby talon
#

@digital fjord we aren't spoon feeding here.

west spoke
#

a simple google search will get you what you need

digital fjord
#

Nah, i have tried.

unique nimbus
#

it is literally on google

digital fjord
#

Im new to coding discord bots.

#

Can u send me link?

unique nimbus
#

Have you tried looking at the docs

west spoke
#

^

digital fjord
#

What docs?

unique nimbus
#

I am guessing you are using js

west spoke
#

embed object -> title = (string: content stripped from say)

digital fjord
#

Yeah, js.

unique nimbus
#

look at the website

#

we won't give you the code

digital fjord
#

Is it that one?

ruby talon
#

Depends

west spoke
#

yes

ruby talon
#

What language are you using

#

Oh nvm

unique nimbus
#

They are using js

ruby talon
#

Didn't see the message

unique nimbus
#

they want people to give them the code

ruby talon
#

Long live discord mobile.

unique nimbus
#

@west spoke Have you tried my code

west spoke
#

im doing that now

digital fjord
#

I really wanna know, how can i find out how to do it. That's my only question. Because i'm new to this - and im not good at english eather.

west spoke
#

are you decent at coding?

digital fjord
#

Who

unique nimbus
west spoke
#

you

digital fjord
#

no idk

west spoke
#

dont

#

try to make

digital fjord
#

i only do minecraft coding lol

west spoke
#

a discord bot

#

before learning how

#

to code

unique nimbus
#

wdym Minecraft Coding

digital fjord
#

Spigot coding

#

Minecraft plugins

sudden geyser
#

Define, minecraft coding.

unique nimbus
#

okay

#

that is java

#

most likely

digital fjord
#

Ya

unique nimbus
digital fjord
#

But I'm bad.

#

What is that, @unique nimbus

unique nimbus
west spoke
#

odd

#

wasn't getting that yesterday

unique nimbus
#

can you show me the code

west spoke
modest maple
#

Can it see the voice channel

west spoke
#

im only a little dumb ok

unique nimbus
#

channel = ctx.message.author.voice.channel

#

I defined channel as this

#

message.author is you

west spoke
#

yes

#

i am tired

#

i just woke up

#

i forgot to join the vc

unique nimbus
#

oh

west spoke
#

anyways, same problem

#

not playing the audio

unique nimbus
#

does the bot join

#

the channel?

west spoke
#

yeah

#

i think it's trying to play

#

but it cant

#

?

#

it now plays the file, but without any sound (seen by the green indicator)

#

like it stops "playing" but no sound is outputted

unique nimbus
#
channel = ctx.message.author.voice.channel
        if not channel:
            return
        try:
            voice = get(self.bot.voice_clients, guild=ctx.guild)
            if voice and voice.is_connected():
                if voice.channel == channel:
                    pass
                else:
                    await voice.move_to(channel)
            else:
                voice = await channel.connect()
        except:
            pass
#

that is the start of my play

summer torrent
#

I get error when using meme command. Sometimes it works, but sometimes i get this:

west spoke
#

thank you

#

but peter, it has no problems connecting, and I don't need it to disconnect/reconnect, as this is going to be a text to speech thing

#

but the problem is

#

it doesnt play anything

unique nimbus
#

does the file exist

west spoke
#

yes

unique nimbus
#

in the same directory as the main.py

west spoke
#

yes

unique nimbus
#

have you changed url to the song name including the .mp3

#

@west spoke

west spoke
#

this is to play a local file

#

not a song

unique nimbus
#

mate

#

is it a mp3

#

.mp3

#

.mp4

west spoke
#

no, .wav

unique nimbus
#

have you called it tts2.wav

west spoke
#

yezs

#

yes

#

i cant type

unique nimbus
#

mp3 doesn't mean its music

#

also

west spoke
unique nimbus
#

have you imported:
from discord import FFmpegPCMAudio, PCMVolumeTransformer, AudioSource

#

it is 0 seconds

west spoke
#

I just call discord.FFmpegPCMAudio

unique nimbus
#

wdym call

west spoke
#

import discord

unique nimbus
earnest phoenix
#

damn

west spoke
#

fine, done.

earnest phoenix
#

import FFmpegPCAudio from discord

#

lmao

unique nimbus
#

wrong way round

#

I am not the problem

#

mine works

earnest phoenix
#

bruh is that python then

unique nimbus
#

yes

earnest phoenix
#

typescript better

west spoke
#

stfu

unique nimbus
#

however FFmpegPCMAudio is IN discord

#

that is why it is from discord

earnest phoenix
#

why do you even need ffmpegpcmaudio

unique nimbus
#

music

#

well audio

#

to play audio

earnest phoenix
#

tf

unique nimbus
#

Neko have you tried again?

west spoke
#

i mean python can handle .wav natively

earnest phoenix
#

what bullshit does discord in python even use

west spoke
#

yes peter

unique nimbus
#

the same bullshit as discord.js

#

¯_(ツ)_/¯

earnest phoenix
#

no its not

unique nimbus
#

it really is

earnest phoenix
#

in discord.js you dont even require ffmpeg from discord.js

#

Instead you require ffmpeg from ffmpeg

west spoke
#

you dont need to import it, you can do discord.ffmpegpcmaudio

earnest phoenix
#

or whatever dependency discord.js has optional for audio

west spoke
#

now if you are going to meme, leave

unique nimbus
#

@earnest phoenix Leave or I get a mod

west spoke
#

read the topic mate

unique nimbus
#

you are not helping

west spoke
#

ok

earnest phoenix
#

...

unique nimbus
#

you are making fun for us using python

earnest phoenix
#

Nope

west spoke
#

3c? oho

earnest phoenix
#

Im not making fun of anything

west spoke
#

i see most of what you're saying as making fun of us

#

tbh

earnest phoenix
#

bruh..

unique nimbus
#

mate you are complaining that we require ffmpeg and you don't

#

please stop

earnest phoenix
#

no im not

west spoke
#

leave

unique nimbus
#

Some guy named JensToday at 14:56
in discord.js you dont even require ffmpeg from discord.js
:lmao:
Instead you require ffmpeg from ffmpeg

west spoke
#

just leave

unique nimbus
#

Some guy named JensToday at 14:56
what bullshit does discord in python even use

#

Some guy named JensToday at 14:55
why do you even need ffmpegpcmaudio

earnest phoenix
#

bruh

unique nimbus
#

bruh

#

Neko have you tried a file longer than 0 seconds

#

that is saying it is 0s

west spoke
#

i can make one rq

unique nimbus
#

Please do

west spoke
#

still nothing, though the ffmpeg window pops up

#

and now the audio is 39s

unique nimbus
#

what have you changed to the code

#

just the import?

west spoke
#

at the moment, and the discord.ffmpeg* is now just ffmpegpsmaudio

#

something i cant spell rn

unique nimbus
#

it is now discord.FFmpegPCMAudio?

west spoke
unique nimbus
#

what

unique nimbus
#

okay

#

wait

west spoke
#

though like i said, there's no difference

unique nimbus
#

voice = get(self.bot.voice_clients, guild=ctx.guild)

west spoke
#

the get() function doesnt exist

#

i dont have your code

unique nimbus
#

from discord.utils import get

#

oop

#

there

west spoke
#

ight

#

but the problem isn't joining?

unique nimbus
#

That is not what I am doing

west spoke
#

fair

unique nimbus
#

that can be used for joining/leaving channels but also to play the audio

west spoke
#

mk

unique nimbus
#

voice.play(discord.FFmpegPCMAudio("tts2.wav"))

west spoke
#

its a .wav, though does it need to be a mp3?

unique nimbus
#

didnt read it

west spoke
#

its fine

unique nimbus
#

it can be anything

west spoke
#

ah

unique nimbus
#

that is all that is needed

west spoke
#

though when i do the get() part as vc

#

but yeah, now when I put in for it to either get the vc or join (if not in one already) then it comes back to the same problem

#

no sound

#

user volume is full, and the .wav file exists and has sound.

unique nimbus
#

show code

west spoke
#

no errors

#

just no sound

unique nimbus
#

delete source = FFmpeg

#

that line

#

and sound = vc.play(source)

west spoke
#

alright, now what

unique nimbus
#

vc.play(discord.FFmpegPCMAudio("tts2.wav")

west spoke
#

though that's the same thing, is it not?

unique nimbus
#

above vc.volume

#

it most likely is

west spoke
#

just using a variable instead of the function in the same line

#

thats literally the same, but ill try it

#

same thing

#

no audio

unique nimbus
#

self.bot

#

unless you defined bot as self.bot

west spoke
#

^

#

i prefer just using bot instead of self.bot

unique nimbus
#

then define it as self.bot

west spoke
#

alright

unique nimbus
#

you can just do
bot = self.bot

#

also why is it in the except

west spoke
#

if connected, go to the same voice channel.

#

(though when I use that, it says play is not a function of NoneType)

unique nimbus
#

you don't even need to put it as a try and except it can work in one go

west spoke
#

lemme use your previous code rq

#

ok, now I have it using your previous code

#

but same problem, as usual.

#

no audio

unique nimbus
#

show what you did

earnest phoenix
#

please help me ```js
con.query(SELECT * FROM globalxp WHERE id = ${message.author.id}, (err, results) =>{
if(err) throw err;
if(results.length === 0)
{
con.query(INSERT INTO globalxp (id, xp) VALUES ('${message.author.id}', ${randomXP()}), err => {
if(err) throw err;
console.log("added XP database!");
});
} else {

    con.query(`UPDATE globalxp SET xp = ${results[0].xp + randomXP()} WHERE id = ${message.author.id}`, err => {
      if(err) throw err;
      console.log("UPDATE XP users!");
    })
  }
})```
#

xp BUG

#

just type it at the next value

#

when you should add it

sudden geyser
#

confused

#

also you do WHERE id = ${message.author.id} (integer) but do ('${message.author.id}' (string), maybe that has something to do with it

earnest phoenix
#

I don't quite understand what you're referring to

sudden geyser
#

what type is id supposed to be, a big int or string?

earnest phoenix
#

string

#

bigint is not good

#

string is not good

quartz kindle
#

ids must be strings

#

although you can use bigints as well, but then you need to convert them back and forth everywhere

earnest phoenix
#

hello

quartz kindle
#

putting quotes around user ids doesnt really matter because they are already strings

#

anyway, what is the problem again?

earnest phoenix
#
con.query(`UPDATE globalxp SET xp = ${results[0].xp + randomXP()} WHERE id = ${message.author.id}`, err => {
          if(err) throw err;
          console.log("UPDATE XP users!");
        })```
#

you should add xp, but just write it next to it

quartz kindle
#

what is randomXP()?

earnest phoenix
#
function randomXP()
{
  return Math.ceil(Math.random() * 25);
}```
molten yarrow
#

than your xp saved as a string

earnest phoenix
#

yes

molten yarrow
#

need to be number

earnest phoenix
#

int? or bigint

quartz kindle
#

int

#

depends how big your numbers are supposed to be

molten yarrow
#

yep

quartz kindle
#

but javascript can only handle numbers up to 48 bits iirc

#

without using bigint syntax

earnest phoenix
#

tanks

#

working

quartz kindle
earnest phoenix
#

help js let nxtlvl = results[0].lvl * 30; if(nxtlvl > results[0].xp){ con.query(`UPDATE globalxp SET lvl = ${results[0].lvl + 1} WHERE id = ${message.author.id}`, err => { if(err) throw err; console.log(`LEVEL up! NEW LEVEL ${results[0].lvl}`); }) }

#

ez annyi lenne ha elérem egy 30 xp akkor szinttel feljebb történetesen nem történik semmi

#

even when it reaches 30 xp, it does not print the log

uneven wyvern
#

is it in your message event?

earnest phoenix
#

at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)10:44 PM

at Function.Module._load (internal/modules/cjs/loader.js:508:25)10:44 PM

at Module.require (internal/modules/cjs/loader.js:637:17)10:44 PM

at require (internal/modules/cjs/helpers.js:22:18)10:44 PM

Jump Toat Object.<anonymous> (/app/src/main.js👍91)10:44 PM

at Module._compile (internal/modules/cjs/loader.js:701:30)10:44 PM

at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)10:44 PM

at Module.load (internal/modules/cjs/loader.js:600:32)10:44 PM

at tryModuleLoad (internal/modules/cjs/loader.js:539:12)10:44 PM

at Function.Module._load (internal/modules/cjs/loader.js:531:3)
mossy vine
#

install the module

uneven wyvern
#

npm i kurasuta

earnest phoenix
#

Done

earnest phoenix
#

do you know if it's possible to do something like a shard where only a list of guilds can be in ?

#

in discord.js

modest maple
#

no that is not possible

#

you dont manage which guilds go in what shard

earnest phoenix
#

okay

#
const userid = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0]));```
#

only ID

#

how?

quartz kindle
#

userid = (message.mentions.users.first() || client.users.get(args[0])).id;

#

but keep in mind that the args[0] will fail if the user is not cached

#

can also be message.guild.members.get(args[0])

#

same thing, but client.users is shorter

pure gust
#

Hey, i have a really complicated question in my own opinion, How can i use my bot to log stuff to an file such as a database file

My situation

I am on a flight sim server and the ATC's log themselves when they are Active

username
callsign
minutes active

How can i make a command that takes that info and stores it into a databse?

quartz kindle
#

your bot receives everything as messages

#

make it filter the messages to make sure its the ones you want, by channel or by message author for example

#

then store those messages by calling a database function or something

modest maple
#

ngl is satisfies me when efficiency is at its finest

#

after some stress testing with a friends site

#

we can scrape 5 pages a second

#

😅

quartz kindle
#

performance > all

summer torrent
#

my node js version is 12.15.0

quartz kindle
#

npm rebuild

dense drift
#

So... my bot posts a message whenever it joins a guild, like a how to message. How do I go about having it not post a second time if the guild is to go down? Do I have to save it to a database or something, so that the bot doesn't post again?

#

I never expected to have this issue.

quartz kindle
#

pretty much

blissful scaffold
#

Yeah, a DB is the easiest way I think

quartz kindle
#

or simply put your "how to" in a help command instead

dense drift
#

Good idea. Thanks guys. 🙂

blissful scaffold
#

My bot sends a DM to me when it gets added to a new server and it checks the database to make sure it isn't added to a guild yet

quartz kindle
#

use your own dms as a database

#

xD

dense drift
#

Mine posts a nice chunk of code, but it also posts a message in the new guild.

blissful scaffold
#

I think someone talked about using guild channels as DB tables a few days ago? xD

dense drift
#

Interesting. I'll have to think about it.

quartz kindle
#

sure why not

blissful scaffold
#

frog, dont think about it in a serious way 😛

#

but it might be something fun to think about sometimes

dense drift
quartz kindle
#

since bots cant search messages, you could make a database guild where the channels are named after a message id in them

blissful scaffold
#

And I think there is a limit of 100 channels in a guild?

quartz kindle
#
let joined = new Promise(async r => {
  for(let channel of guild.channels.values()) {
    let list = await channel.messages.fetch(channel.name);
    if(list.includes(newGuild.id)) return r(true);
  }
  return r(false)
});
#

lmao

ruby talon
#

It would be a very great wya to save passwords
#changemymind

quartz kindle
#

you could use a few channels to hold a message of indexes

#

then you can have multiple messages in each database channel

#

actually

#

99 channels of indexes

#

and 1 channel holding the actual data

oak thistle
#

hello

#

I have been told to come here and ask about a problem I have with installing Bots on a discord server

#

I humbly require your assistance

blissful scaffold
#

you can just ask your question and when someone has an answer they will let you know

quartz kindle
#

this place is more about developing bots, but well

blissful scaffold
#

Eri told him to ask it here 😛

quartz kindle
#

to add a bot to a server, you need to have the right permissions, be logged in in the right account in the website version of Discord, and then open a discord bot invite link

oak thistle
#

ok my question is, if I create my own server but only use a free discord account, can I add a bot or do I need to upgrade ?

quartz kindle
#

yes you can add bots

oak thistle
#

well I just tried and it failed

quartz kindle
#

failed how?

#

describe what happened

oak thistle
#

I get the screen with Authorize then nothing happens when I click on it

#

I checked adblock and turned off my antivir

quartz kindle
#

does it show a list of servers to select?

oak thistle
#

no can do

#

not even

flat pelican
#

bruh

quartz kindle
#

are you zoomed in?

oak thistle
#

it just goes onto the first screen and if I click it doesn't do anything

quartz kindle
#

zoom out of the page

oak thistle
#

not zoomed in

sterile minnow
#

"only free discord account" lmao

oak thistle
#

I can give you a screen shot

flat pelican
#

This isn't the same question than the one in #general

quartz kindle
#

show the screenshot

flat pelican
#

Are you kidding with me

sterile minnow
#

Yes he is i think lol

flat pelican
oak thistle
#

ok @flat pelican and @sterile minnow are you guys on crack or what ? Is this how you help people who come in this server for advice ? This ain't your mom's kitchen, punk. You talk a whole lot about respect but all I get from you is patronizing BS.

#

check yourselves, boys.

sterile minnow
#

WTF LOL

#

Lmao

late hill
#

It's still the same question

#

He's not very great at explaining it

modest maple
#

lmao

quartz kindle
#

LOL

modest maple
#

your first message

#

in this server

late hill
modest maple
#

tried to @

#

80,000

#

people

sterile minnow
#

And why trying to @e

quartz kindle
#

that escalated quickly

sterile minnow
#

@quartz kindle yes it did

flat pelican
#

-m @oak thistle Needs to rest for a long time. This server is a bot list, not google. Keep things respectful the next time please | 1 week

gilded plankBOT
#

🤐 Muted AshDrunbar#3628 (@oak thistle)

sterile minnow
flat pelican
#

The thing you asked in #general was #development related, now you switch here for asking about how to add bots

#

You are completely doing the opposite of what's being said

quartz kindle
#

i think he just couldnt express properly in english

sterile minnow
#

Okay k Thing eri is being mad

quartz kindle
#

add/authorize/invite to server

sterile minnow
#

Yes

flat pelican
late hill
#

Basically, if he didn't react the way he did, he'd have a valid point

sterile minnow
#

Yes, and how the f*ck is he allowed to speak so to a mod

late hill
#

well he's not

flat pelican
#

Forget the part that I'm mod

sterile minnow
#

Yea

late hill
#

the punishment is warranted after that reaction

sterile minnow
#

Yes

#

"aRe YoU gUyS oN cRaCk??1?1?1?1!1!elf!1!1!"

flat pelican
#

Nvm, let's get things back on-topic guys

sterile minnow
#

Yes

blissful scaffold
#

I guess he was on a wrong account and just needed to switch accounts

#

but I didnt really understand what he meant

sterile minnow
#

Idk but now its a offtopic thing

high wind
#

how do you @ someone with your bot?

blissful scaffold
#

He already left the server anyway 😛

late hill
#

<@userid>

blissful scaffold
#

Most libraries have a getMention function

sterile minnow
#

<@user_id_here>

high wind
#

can you do <@message.author.id>

sterile minnow
#

Yes

late hill
#

yes but no

high wind
#

it doesnt seem to work for me

#

its outputting an error

sterile minnow
#

Or use message.reply xD

late hill
#

you can't literally use that

#

but that logic, yes

summer torrent
#

try ${message.author}

sterile minnow
#

What are you using to declare the message thing JoJo

blissful scaffold
#

for pinging me it would look like @blissful scaffold

high wind
#

wdym

flat pelican
#

all libs have a mention for user objects

#

like for python:

message.author.mention```
high wind
#

I'm in javascript

quartz kindle
#

to mention someone you need to send a message containing <@userid>

#

how depending on your programming language, you need to build that string

sterile minnow
#

message.author i think

quartz kindle
#

you cant just write it

high wind
#

ok

quartz kindle
#

for example, one way would be "<@" + message.author.id + ">"

blissful scaffold
#

or do what eri suggested and just use the mention option

quartz kindle
#

yes, check with your library's documentation

high wind
#

thanks

flat pelican
#

id will work too

#

the thing above is a "long" way to mention someone

#

user.mention is more speedish

high wind
#

ok

sterile minnow
#

I've a question and idk if this question can ve here but i ask anyways: has anyone a idea in wich language @gilded plank and @pliant gorge is written in?

flat pelican
#

d.js

#

for both

high wind
#

user isnt defined

flat pelican
#

you need to get the user object

#

message.author.mention

high wind
#

ok thanks

grizzled raven
#

bruh

#

yall couldve used <User>#toString() if you were struggling with basic string + string stuff

sudden geyser
#

I thought Luca was written in Java PanWoah

velvet star
#

I am a bit stumped. I am trying to create a bot that will take input from a chat and add it to a google sheet but have it almost chat style? Example- (Start bot command) What is your name? Answer What is your age? Answer and have the results posted to google sheets? Is that even doable?

#

the questions would be set questions so I guess its just a form you complete via discord and have the results in sheets?

earnest phoenix
#

you can use some google sheets api probably

velvet star
#

oh ok

#

Im a noob at this stuff. I know HTML and thats it.

restive furnace
#

@sudden geyser its written in javascript

#

so pretty closem

marble juniper
#

ik its a joke but this insults me

grizzled raven
#

haha yes java is short for javascript

ruby talon
#

Yess

tight plinth
grizzled raven
#

@tight plinth try client.guilds.cache.size

tight plinth
#

Hmm

#

Why client.guilds.size is undefinied

grizzled raven
#

because

#

djs 12 is different

earnest phoenix
#

theres no .size

#

in master

tight plinth
#

It was defined yesterday

#

And I didn't update anyrhing

earnest phoenix
#

hmm

#

strange

tight plinth
snow pine
#

r!eval client.guilids.size

#

Rom

#

r!cl @neon valley

#

Ayyy

#

?cload @neon valley

tight plinth
snow pine
#

Yes xd

#

I just figure it out

sinful lotus
#

@tight plinth you updated your d.js without knowing you did update it

tight plinth
#

I updated to v12 like a month ago

sinful lotus
#

probably you didnt notice you did npm i and it updated to latest

#

or you are not specifying what build you should use

tight plinth
#

I think I specify the version

sinful lotus
#

you are not specifying any d.js commit in master to install

tight plinth
#

True

sinful lotus
#

nah it will still install the same version

#

what im saying is

#

you are not specifying any commit in 12.0.0-dev

tight plinth
#

I need to install a specific commit

#

I see

sinful lotus
#

yes finally you got the gist

tight plinth
#

Gonna do that after skool

sinful lotus
#

just dont exceed the version above and you wont need to rewrite that

#

or if you want to, make sure you read the docs

#

because there is a lot to change

tight plinth
#
client.guilds.forEach(guild => {
guild.leave()
}) ;
#

This is how to get the best bot ever

covert tulip
#

What is being done here?

sinful lotus
#

bots

covert tulip
#

You throw my bot commands here

sinful lotus
#

no

tight plinth
#
 function random (number) {
return client.uptime%number
}
let h = random(10)

if (h===87) {
message.reply('lukky')
}
else {
message.reply('unlukky')
}

First one to get 'lukky' wins a hug

#

With proof

bitter sundial
tight plinth
#

:hug:

bitter sundial
#

but what kind of rng is that

tight plinth
#

Wai

#

This is better

bitter sundial
#

thats not possible

mossy vine
#

how to make a vulnerable rng

sinful lotus
bitter sundial
#

h is only going to be between 0 and 9

restive furnace
#

random(10) + 1

quartz kindle
#

why not just Math.ceil(Math.random()*10)

earnest phoenix
#

Hi, i have a question, i need to get a user id from a db and send a DM to him, how i can do that?

       db.get(`SELECT * FROM tickets WHERE id = ${arg1}`, (err, filas) => {
         var respuesta = new Discord.RichEmbed()
         .setTitle("Respuesta de ticket")
         .setDescription("Tu ticket ha sido respondido!")
         .addField("Staff", message.author.tag)
         .addField("Respuesta", arg2);
         console.log(filas.userid);
         message.guild.members.get(`${filas.userid}`)
                        .send(respuesta)
                        .catch(console.error);

       });
#

i got a error
TypeError: Cannot read property "send" of undefinied

winter shell
#

How to get video's from a youtube playlist in discord.js?

tight plinth
winter shell
#

hm

tight plinth
#

Try lavalink

#

Copy code from others open sources lavalink bots

winter shell
#

I will try but you know how to get video data from a youtube playlist?

earnest phoenix
#

i use client.users.get too but didnt works

tight plinth
#

Playlist = song list

prime cliff
#

Copy code from others open sources lavalink bots
Kappa oh my

tight plinth
#

Why is math not defined

earnest phoenix
#

`Failed to run preInit on data: Error: EACCES: permission denied, mkdir '/data'4:06 PM

a few seconds ago`

#

Help

tight plinth
#

use sudo

valid holly
#

@earnest phoenix that’s not an user object

glacial mango
#

Anyone knows why my Discord is stuck at Checking updates when I start it?

earnest phoenix
#
3|oooo     | }
3|oooo     | Error: Cannot find module '/root/oooo'
3|oooo     |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:973:15)
3|oooo     |     at Function.Module._load (internal/modules/cjs/loader.js:855:27)
3|oooo     |     at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:27:21)
3|oooo     |     at Module._compile (internal/modules/cjs/loader.js:1144:30)
3|oooo     |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1164:10)
3|oooo     |     at Module.load (internal/modules/cjs/loader.js:993:32)
3|oooo     |     at Function.Module._load (internal/modules/cjs/loader.js:892:14)
3|oooo     |     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
3|oooo     |     at internal/main/run_main_module.js:17:47 {
3|oooo     |   code: 'MODULE_NOT_FOUND',
3|oooo     |   requireStack: []
3|oooo     | }```
#

What to do

marble juniper
#

have you tried

#

reading the error

earnest phoenix
#

Yes

marble juniper
#

can you send some code

earnest phoenix
#

Like

marble juniper
#

so we can see what the problem is

earnest phoenix
#

I am using jagrosh music codes

marble juniper
#

well the error says it can't find /root/oooo

earnest phoenix
#

Sooblobsleepless

#

What to do now

marble juniper
#

can you show me where you do require /root/oooo

#

in the code

marble juniper
#

I mean the code not this

topaz fjord
#

Ip leak

#

Nice

#

That's a GG ip as well mmLol

earnest phoenix
#

when ppl dont know what ips are for

restive furnace
#

and if it haves ddos protection, then u can expose the ip xd

uneven wyvern
late hill
#

What's the fastest way to get artifacts from my local java (maven) project onto my vps

knotty fiber
#

hello! how do i make a bot display stats, ie versions of libraries and such?

#

i tried to google but can't find anything

#

it's not just hardcoding it in right

restive furnace
#

@knotty fiber what lib

#

probably best to look your librarys documentation.

#

@late hill probably with sftp if theyre local.

knotty fiber
#

for example discord .js

restive furnace
#

<library>#version on d.js, not spoonfeeding

#

^ thats on most npm packages

summer torrent
#
require("discord.js").version```
#

for example

knotty fiber
#

i see

knotty fiber
#

works just for discord.js so far it seems

#

at least it's easy to display nodejs version

ocean frigate
#

Is there something like that in python

sudden geyser
#

yes

ocean frigate
#

Can you please tell me how that works in python then

cursive dagger
copper cradle
#

It's like a standard

modest maple
#

@ocean frigate normally .__version__

ocean frigate
#

😱 I used python so much but didn't even knew that!

#

Shock me

#

I have yet very much to learn

modest maple
#

its not for everything

#

its just some libs have it

marble juniper
#

😱

ocean frigate
earnest phoenix
#

J

#

Yeaaaah

#

Finally im developer

uneven wyvern
zenith orchid
#

@uneven wyvern Do you have the index.js file?

uneven wyvern
#

of causew

#

casue

#

fuck me

tight plinth
#

@uneven wyvern /Documents/index.js

#

Maybe

uneven wyvern
#

nope

earnest phoenix
#

Where are my bot ??

#

Is name Good Bot

mossy vine
#

@uneven wyvern vscode striaght up says thats where your file is

zenith orchid
#

@cursive vapor @earnest phoenix

mossy vine
earnest phoenix
#

Not this

mossy vine
zenith orchid
#

I think not here

earnest phoenix
#

My bot avatar is GoodBot

zenith orchid
#

@mossy vine C:\Users\Dimitri\index.js has got index.js file?

mossy vine
#

what

zenith orchid
#

Shit

#

Sorry

mossy vine
#

ok

zenith orchid
#

Wrong people

earnest phoenix
mossy vine
#

see if its kicked

zenith orchid
#

@earnest phoenix i think not here in this guild.

modest maple
#

its just muted

mossy vine
#

@urban junco

modest maple
#

welp nvm

earnest phoenix
#

Yeah its

mossy vine
earnest phoenix
#

What

#

#help

#

And how can i join this bot

zenith orchid
#

Fix bugs and reply add bot

earnest phoenix
#

@bitter sundial help

#

But how can i invite or join the bot to her

#

??

mossy vine
#

remove the feature it was kicked for and ask a moderator to reinvite it

#

also if its prefix is # you will not be able to use it in this server, as its a common prefix

earnest phoenix
#

Do i should do the prefix $

mossy vine
#

no

#

that is also common

earnest phoenix
#

make the prefix like

#

bot_initals$

#

so if I made a bot and it was called: " Fweaks Cloud " id use fc$command

ruby talon
#

Imagine giving a svg file a name showing the size.

#

🧠

sterile minnow
#

LoL

modest maple
#

Gay Bowser is actually the doom slayer in disguise

sterile minnow
#

Yes

#

XD

flat pelican
#

Tonkkums help

#

@earnest phoenix You have to disable DMs about boosts for this server

#

in otherwise, we won't add it back on this server

sterile minnow
#

Frick wrong channel uff

#

Sorry guys

earnest phoenix
#

Hi

#

i have this problem

#
Error: This video is not available.
    at request (/home/ubuntu/node_modules/ytdl-core/lib/info.js:47:25)
    at PassThrough.Miniget.stream.on (/home/ubuntu/node_modules/miniget/dist/index.js:196:32)
    at emitNone (events.js:111:20)
    at PassThrough.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
unique nimbus
#

The video isn't available

earnest phoenix
#

i try with 3 videos

#

all say the same

copper cradle
#

They're not available

#

Ez fix

unique nimbus
#

It can be geo-blocked

#

or privated

earnest phoenix
#

but i go to videos and are correctly

#

my code is

unique nimbus
#

Are you hosting the bot?

earnest phoenix
#
  if(message.content.startsWith("mw!play")){
      if(message.author.bot){

      } else {
          

let canalvoz = message.member.voiceChannel;

if(!canalvoz) return message.channel.send('¡Necesitas unirte a un canal de voz primero!.');
if(!args.join(' ')) return message.channel.send('Ingrese un enlace de youtube para poder reproducirlo.');

canalvoz.join()
    .then(connection => {
        const url = ytdl(args.slice(1).join(" "), { filter : 'audioonly' });
        const dispatcher = connection.playStream(url);
         url.on("error", console.error);
        message.delete();
        message.channel.send('Reproduciendo ahora: '+ args.slice(1).join(' '));
        console.log()
    }).catch(console.error);

      }
  }
#

yes

#

in a vps

unique nimbus
#

is the vps by any chance is in another country as you?

earnest phoenix
#

Yes

unique nimbus
#

The video may be geo-blocked

earnest phoenix
#

why despacito is geo-blocked?

#

XD

unique nimbus
#

or there is a child filter thing

topaz fjord
#

What country is your vps in

earnest phoenix
#

in france

#

i think

unique nimbus
#

Have you tried other urls

earnest phoenix
#

yes

unique nimbus
#

is all getting blocked

earnest phoenix
#

all say that

unique nimbus
#

aka nothing will play

earnest phoenix
#

the bot says that is playing

#

but i dont listen nothing

#

fc$commands

#

?

#

#help

#

@urban junco

#

But why the bot is kicking

mossy vine
#

fam

#

i told ya

marble juniper
#

big brain

earnest phoenix
#

someone that can help me?

#

ask

#

someone will be more likely to respond

#

that is my question

quartz kindle
#

nothing you can do about it

#

try updating ytdl, or wait for a fix

#

check the ytdl github

#

if absolutely no video works, even with updated ytdl, your machine's ip address might be blacklisted or something idk

delicate zephyr
#

@earnest phoenix Youtube has been banning ips to stop people breaking tos

#

which scraping the site for videos is

#

so

#

*breaking their tos

earnest phoenix
#

so?

unique nimbus
#

against tos means they can block your ip

#

I mean it is there website

amber fractal
#

Why do I get a FileNotFound error but when I follow the link (vscode) it opens the file just fine? Python

unique nimbus
#

have you added the .txt or whatever to the end of it?

amber fractal
#

Yeah the error is specifically [Errno 2] No such file or directory: 'bot/generator/gpt2/models\\model_v5\\encoder.json'

#

The double backslashes are done by os.path.join

unique nimbus
#

is the main file already in bot?

amber fractal
#

I was erroring without bot as well

#

It*

blissful scaffold
#

Looks like you are making a bot for AI Dungeon? 😛

amber fractal
#

It's working now I guess I didnt see it was done with bot at first anyways thanks @unique nimbus

unique nimbus
#

it is okay mate

amber fractal
blissful scaffold
#

I tried to run it once on my pc, the software and my pc both didnt like it 😄

amber fractal
#

Yeah it takes some power

#

Saving the story is the hard part rn

#

the encoder is having trouble

blissful scaffold
#

I think the software always threw an error when i tried to save it

amber fractal
#

My problem is encoding

blissful scaffold
#

Looks interesting to have a bot run it, now just hope that there wont be 100 servers who try to generate a story at the same time

amber fractal
#

Well the AI is pre-trained

#

I wont be training the AI at the time it runs, the server would just die

#

But because GPT2 is pre-trained it's more possible

amber fractal
blissful scaffold
#

I put on my silk shirt and wear my silk shirt

amber fractal
copper cradle
#

K, I'm back

delicate zephyr
#

@amber fractal just replace the \\ with /'s

#

i have the same issue with running on windows vs linux

#

I just replace double backslashes with /

amber fractal
#

I already fixed it

delicate zephyr
#

oh ok

#

windows directory formatting is just stupid imo

blissful scaffold
#

officially windows directory formatting needs \, but bill gates is nice and windows also accepts /

copper cradle
#

True

#

Windows should switch to / tbh

delicate zephyr
#

^

grizzled raven
#

why and how is \ the main one?

hybrid sequoia
#

How can we do a command that tells information of the server you posted the command on, Like example:

Server name: Discord bot list
Server ID: The server's ID
Owner: the server owner 
Total members: 100
Total bots: 10
Total humans: 90
Channels: 20
Emojis: 0
Roles: 21
Server creation date: January 10th, 2019
quartz kindle
#

use the guild object

#

of your discord library

hybrid sequoia
#

Wdym? Im alittle confused

quartz kindle
#

what library do you use?

hybrid sequoia
#

Im starting to make it, where can i find it sorry if it annoys you

quartz kindle
hybrid sequoia
#

Oh