#topgg-api
1 messages · Page 124 of 1
oof okay
Benim Botum 50 Sunucuda Var
Ama Sitede 3 Sunucu Diye Gözüküyor
Nasıl Düzeltebilirim
How i can give me a API of Youtube
JDA
no no
I am already using JDA
nvm
pretty sure theres one
any idea where it's docs?
hey, does anyone have the code for how to do the bot api without cogs?
Yarım saat oldu koyalı %50 de
yarım saatde %50 zor bu arada minimum 9 gün sürüyor zaten her gün %10 oluyor
hey, does anyone have the code for how to do the bot api without cogs?
I want to give rewards when users vote using the vote api. Is this possible?
doesn't matter, as long as you follow the ratelimit guidelines of 60 requests per minute, it shouldn't be an issue
ohh i won't be hitting that
though 5 minutes is definitely acceptable
yes that is possible if you set up the webhook correctly
vote = await self.dblpy.get_user_vote(user_id=ctx.author.id)
Why is this returning false? When the user voted?
Testvotes do not have a impact in that
@rain heart i setup webhook send test but not show vps console
did you enter the webhook url in your bot page settings correctly?
yes
Dm me the url you entered
Your webhook url doesn't seem to work, make sure that it is running etc
check for the logline that says "webhook started" or something similar
Webhook up and running at http://0.0.0.0:8000/dblwebhook
Webhook Bot Tester launched!
@rain heart
Make sure that 8000 isn't blocked
do a wget in your vps through localhost, wget http://localhost:8000/dblwebhook
for this reason it doesnt works
I dont know
u can use 3.8.6 or lower...
K well do u have the code for that?
W/ no cogs?
I put this con my code
look
class TopGG(command.Cog):
"""Handles interactions with the top.gg API"""
def __init__(self, bot):
self.bot = bot
self.token = 'bot token' # set this to your DBL token
self.dblpy = dbl.DBLClient(self.bot, self.token, autopost=True) # Autopost will post your guild count every 30 minutes
async def on_guild_post():
print("Server count posted successfully")
client.add_cog(TopGG(client))
and it works
Thx man
client = commands.Bot(command_prefix='//', intents=intents)
prefix = "//"
Client = discord.Client()
@client.event
async def on_member_join(user):
bla bla bla
@client.event
async def on_ready():
@client.command()
async def lang(ctx, lang=None):
@client.command(aliases=['helpme'])
async def help(ctx):
guild_id = ctx.author.guild.id
@client.command(aliases=['8ball'])
async def _8ball(ctx, *, question = None):
client.run('dasdasdadas')
Bruh yeh I have my bot
... ahhh... nope
but
?
try
I can’t rn
@loud flint could you try test-voting again? there had been an issue with voting recently
#!/usr/bin/python3.8.6
ah.... ur top.gg bot token only
No the code
Now that I found out I cannot use 3.9
So imma try it out tomorrow
Thx for ur help
yup
can i use topgg sdk for server vote?
yes
ty
ch!help
[H] Dam od 650 gredytów do 1000 [W] za fenneca
@restive otter this ain't a trading server
ive got 169 votes this month, however when i do a get request on the api for my bot's votes, with limit 1000, it returns 115 votes
could be doubled votes over the weekend
hey since the dblapi.js getting deprecated how do I make a vote logging system?
Would it be the same code as before with the new @top-gg/sdk
no
you'd need to setup an express server
okay
const express = require('express')
const Topgg = require('@top-gg/sdk')
const app = express() // Your express app
const webhook = new Topgg.Webhook('topggauth123') // add your top.gg webhook authorization (not bot token)
app.post('/dblwebhook', webhook.middleware(), (req, res) => {
// req.vote is your vote object e.g
console.log(req.vote.user) // 221221226561929217
}) // attach the middleware
app.listen(3000) // your port```
yup gotcha tysm! 
np
I gave up without coding the api service because the problem continued @rain heart
how this will work?
@rapid kettle Hello, my system no fonctionnaly (i am french, sorry)
I have put what is written in the documentation.
@restive otter well you put the url your bot listens on in the url and something secret in authorization
you need a http server on your bot and have it accessible from the internet so top.gg can make POST requests to it
when you receive a POST you check if the authorization header is what you put in the authorization field and then you know the request is coming from top.gg
this is how webhooks work, check a tutorial on youtube or read up on how webhooks work
@cyan wyvern something is not set up properly probably
i think it's serverip:port/dblwebhook
Can someone help me with webhooks?
yes that looks correct
well something else is wrong then
i see
Can someone help me with webhooks? (sorry for repeat the question)
@bold quiver say what you need help with, what you tried, why it didnt work
otherwise nobody can help
if you can't answer those 3 questions you can probably help yourself by trying something first
code for page js : ```js
this.get('/', function(req, res) {
res.status(200).render('votes.ejs', {
config: req.config,
bot: req.bot,
user: req.user,
is_logged: (req.isAuthenticated())
});
});
this.post('/', webhook.middleware(), (req, res) => {
console.log(req.vote.user) // 221221226561929217
});
Sorry, my problem is that when I do a test with the site, this post well on my site, but no action is done, it just post (no console.log is done)
const Topgg = require('@top-gg/sdk');
const webhook = new Topgg.Webhook(config.bot.dbl.authorize);```
what about js? how to do it too??
go to the api page and go to "my bots" or something
Why does top.gg api sometimes 404. I assume this isn’t a problem on my end as it only happens every now and then
const tk = "my_token"
const dbl = new DBL(tk, { webhookPort: 5000, webhookAuth: 'password' });
dbl.webhook.on('ready', hook => {
console.log(`Webhook running`);
});
dbl.webhook.on('vote', async vote => {
const time = Math.floor(new Date().getTime() / 1000)
votes.set(vote.user, time);
console.log(`${vote.user} voted!`)
});``` I tried using this, but it is not receiving votes, why?
helo
so
im trying to make a currency system for my bot
and when i do npm i quick.db in terminal i get a bunch of errors
and i dont get quick.db anywhere
ok
i've followed the new d.js webhook nearly exactly to the T and it still doesn't work
d.js v12:
const Topgg = require(`@top-gg/sdk`);
const webhook = new Topgg.Webhook(config.WEBHOOK_AUTH);
const api = new Topgg.Api(config.DBL_TOKEN);
app.post(`/dblwebhook`, webhook.middleware(), async (req, res) => {
let vote = req.vote;
console.log(`User with ID ${vote.user} just voted!`)
});
is something wrong here
Someone help me here?
How to do that?
what
..
are you using glitch or do you have a server
Glitch
then your webhook url is http://your_project_name.glitch.me/dblwehook
Ooh
Ill do this too?
Wait let me do first

why are you doing this on your phone
it'd be easier if you just waited until you got on a computer
👋
d.js v12:
const app = express();
const Topgg = require(`@top-gg/sdk`);
const webhook = new Topgg.Webhook(config.WEBHOOK_AUTH);
const api = new Topgg.Api(config.DBL_TOKEN);
app.post(`/dblwebhook`, webhook.middleware(), async (req, res) => {
let vote = req.vote;
console.log(`User with ID ${vote.user} just voted!`);
});
app.listen(5000, function() {
console.log(`Listening on port 5000`);
});
is something wrong here

not by the looks of it @dusty roost
it doesn't work at all
i haven't changed anything in my bot's top.gg settings
no errors or anything
it just doesn't work
what doesnt work?
the voting event
did it work before?
yep
randomly stopped working yesterday, and this morning i found out they changed the api
weird
oh i fixed it
elsewhere i had an express app listening on another port
guess that was the issue
still annoyed that they changed it for seemingly no reason
which one is the updated library now?
np
for your bot?
that's simple
so you made a bot right?
so go to your bot's page in https://discord.com/developers/applications
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
It is not accepted yet
In java library
screenshot what it says what to do
try using this https://top.gg/api/docs? idk
I want to check if the person voted
Ok
because actually
you can ONLY do that after it's accepted
because it has top.gg stuff
anyway
i came here because of another problem
so for my bot i'm making a currency system
and im using quick.db like basically everyone does
console.log('someone did ;bobux command')
let user = message.mentions.users.first() || message.author;
let bobux = db.fetch(`money_${message.guild.id}_${user.id}`)
if (bobux === null) bobux = 0;
const embed = new Discord.MessageEmbed()
.setColor('#f0ff00')
.setTitle(`${user.username}'s bobux`)
.setDescription(`***${bobux} bobux***`);
return message.channel.send(embed);```
and i made a command to check your balance, it'll always be 0 because i haven't made any way to get money
it works
but i tried to make this command
let bobuxisyouhave = 0;
if (bobux < 500) bobuxisyouhave = 0;
else bobuxisyouhave = 1;
let scammedBobux = Math.floor(Math.random() * 500) + 1
if (bobuxisyouhave === 1){
db.subtract(`money_${message.guild.id}_${message.user.id}`, scammedBobux)
const embed = new Discord.MessageEmbed()
.setColor('#ff0000')
.setTitle(`haha get scammed`)
.setDescription(`you lost **${scammedBobux} bobux** for being scammed lol\nnow you have **${bobux} bobux**`);
return message.channel.send(embed);
}else{
db.subtract(`money_${message.guild.id}_${message.user.id}`, scammedBobux)
const embed = new Discord.MessageEmbed()
.setColor('#f0ff00')
.setTitle(`noob`)
.setDescription(`lol you noob don't even have 500 bobux not even scammable`);
return message.channel.send(embed);
}
}```
and in terminal when i do the command it says that 'bobux is undefined'
i think the problem is that bobux is defined only in one command
so it can't be in others
wait
lemme try something
lol
ok but new error
i changed it so that this chunk of code:
let bobux = db.fetch(`money_${message.guild.id}_${user.id}`)
if (bobux === null) bobux = 0;``` is at the near start of the command handler
and the ;bobux command still works
but new error when i do ;freebobux
to you mean?
in every 'message.user.id'
ok
I code in JDA so i cant help u
now it says the same thing except instead of id it says author
can i see the updated code ?
one sec
waaaaaaaaaait
gWAIT
i figured what was wrong
yayyayayaya
now it work
s
noice
I use better-sqlite3 lmao
whatverer
const app = express();
const Topgg = require(`@top-gg/sdk`);
const webhook = new Topgg.Webhook(config.WEBHOOK_AUTH);
const api = new Topgg.Api(config.DBL_TOKEN);
app.post(`/dblwebhook`, webhook.middleware(), async (req, res) => {
let vote = req.vote;
console.log(`User with ID ${vote.user} just voted!`);
});
app.listen(5000, function() {
console.log(`Listening on port 5000`);
});```
@dusty roost can u help me now? im in pc :>
btw sry for the ping ;v
ok so on the top.gg bot edit page, put an auth code
it can be anything
but the auth code in here:
const api = new Topgg.Api(your_auth_code);
?
const app = express();
const Topgg = require(`@top-gg/sdk`);
const webhook = new Topgg.Webhook(config.WEBHOOK_AUTH);
const api = new Topgg.Api('I Will Put My Auth Code Here? Like 123?');
app.post(`/dblwebhook`, webhook.middleware(), async (req, res) => {
let vote = req.vote;
console.log(`User with ID ${vote.user} just voted!`);
});
app.listen(5000, function() {
console.log(`Listening on port 5000`);
});```
is this right?
yes
ill put this in main file or make new file?
main file
kk
@dusty roost const app = require('express'); or const app = express();
app.post(/dblwebhook, webhook.middleware(), async (req, res) => {
^
TypeError: app.post is not a function
const express = require(`express`)
kk im right
express should already be downloaded on glitch
ye
then const app = express();
then just npm i express
const express = require(`express`); ?
no
i didnt put express
you need to define express before
then const app = require('express')
const express = require(`express`);
const app = express();
const express = require('express')
const app = express();
done
what ill put here?
const webhook = new Topgg.Webhook('here :<');```
that's actually where you put your auth code
you put the top.gg token in the other one
okk
is the topgg api ez
const webhook = new Topgg.Webhook('Auth COde Here?');
const api = new Topgg.Api('Token Here?');```
yep
kk
what can you do with the api
then ill put auth code in the 2nd one and what is in first?
bad
kk
pretty sure you can use the 5000 port on glitch
right?
yep
it would be port 443 for https
yeah
does it say "Listening on port 5000"?
it's not supposed to with glitch
did you add app.use(8080) at the end @restive otter
okay, do you have } before the ;
app.listen(5000, function() {
console.log(Listening on port 5000);
});
app.listen(5000, function() {
console.log(`Listening on port 5000`);
});
did you click run
or go to the console and enter node index.js
its automatic running
why?
and you also get access to way more features than Glitch offers
Listening on port 5000
i see the listening on port 500
5000
if i run it again
ye its say listening on port 5000 in first :>
now click test
done
does it say anything in the logs
and i check the log
nothing :<
you should delete that
but yeah that looks right
do you have app.listen anywhere else in your code
uhh then idk
aaaaaaaaa weird
you sure it's not listening on another port somewhere? that was an issue for me
this is a error?
nope, you need to post your server count using the api.
its how programs talk over the web, and locally.
we are using the discord api to talk right now, so does your bot to function.
ok
ohh i have a question
in the api
say a token
is a token for mi bot? or i generate a token?
ohh
ok in the api says a library javascript
I have to enter the code that tells me no?
helpppppppppppppp me in api im glitch user :<
mostly yeah, the old lib is still listed on the docs, this is the more up to date one.
<#topgg-api message>
ohh thanks
i have a new question
in " I have a introduce mi top.gg token but i have a error
forget it i solved it
ehh h
error
say N/A
helpppp
check pins ;>
ok
men
what is the command require?
is it the same code ?? if not, please send it to me
read the documentation
that is mentioned in the url on this channel's topic
if you're unable to understand it, you're not ready to do that yet
i am not ready :c
same ;c
Seems like my bot fails to get user votes
After it got kicked from here
Is it a temporary issue or I should fix it myself in the bot code?
i need a server count for mi bot
me too but its not easy ! :<
:c
are you fetching user votes rather than using the webhooks?
you potentially could be getting rate limited if you are fetching them.
lol
i have a api xd
working urs?
why do you have an api for making a request to an api 🤔
yeah, youll need to use that in the code example
yeah
I'm using dbl.py
As far as I know it uses webhooks by default
But maybe I'm wrong
tomorrow i need create a webhooks
why do you need webhooks 🤔
:ID would be your bots id
ahh ok thanks
how can I make my bot dm someone once they voted for the bot?
also where can I get these two fields?
@sour ore
hi chat
url is your webhook url
and authorization is your webhook authorization
yeah
where tho?
in your bots code
or wherever you would like to handle votes
for example in a separate bot, sending it in a voting channel for example
well
i did do this:
dbl.on.webhook('vote', (vote) => {
console.log(`${vote.user} voted for me!`)
const webhook = new Discord.WebhookClient(some numbers here, "from discord's webhook idk")
webhook.send(this.client.embed().setTitle('Upvote!').setDescription(`I got voted by ${vote.user} on [top.gg](https://top.gg/bot/mybot'sid/vote)`))
})```
but well where can I get the url?
do i console.log it?
or?
something like http://91.11.11.1:5000/dblwebhook for example
Your servers ip address, yes
You have a project URL that points to your Heroku application
because you need to run the app with web dyno on
i,
what was the crash reason
at=error code=H10 desc="App crashed" method=GET path="/dblwebhook" host=mikioplease.herokuapp.com
this i think
Enable the web dyno
I didn't read the conversation, pardon
Nope, generally not familiar with Heroku either
ok damn i understand lol
YEEEEEEEEEES FINALLY!
how to check total inv in req.vote.???
Can you help me how I put my webhook to work when someone votes?
I've tryed this
const DBL = require('dblapi.js');
const { dbltoken } = require('./config.json')
const dbl = new DBL(dbltoken, { webhookPort: 5000, webhookAuth: 'password' });
dbl.webhook.on('ready', hook => {
console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbl.webhook.on('vote', vote => {
client.guilds.get('736544975969583197').channels.get('790560884258111508').send(`User with ID ${vote.user} just voted!`)
})
And there wasn't any error.
But no message posted.
check pins :>
Aight thanks
@restive otter could my error be that its just like samu's code?
¯_(ツ)_/¯
Now I have the other, but how do I get to check if some1 upvoted?
Offtopic
?
How To Check Total Invites ?? Using Command?
error code=H14 desc="No web processes running" method=POST path="/dblwebhook" host=greedow5148.herokuapp.com request_id=615e3c87-7446-4b22-9ceb-fa4b2d4c80ae fwd="165.22.130.154" dyno= connect= service= status=503 bytes= protocol=http
can someone help me fix it? pls
🙂
your app must run on a web process, not worker
oh ok
add a web process to your Procfile
and use it to run the web server
so do u mean I do this
Web:node index.js
instead of
Worker: node index.js
and its lowercase
or add both
you can have both in the same file
but
yes...
Oooo so u mean this is the file
Procfile
Inside the file:
Web: node index.js
Worker: node index.js
so is this fine?
if they both run the same file you'll have two instances of the bot running
split the server and the bot into separate files or something
well you can create two apps
but like
if its something this small im pretty sure you can just do it in one app
so one the first, I will add
Worker: node index.js
The second app
Web: node index.js
so wont my bot reply twice?
so you'll use two apps?
worker: node my-bot.js
web: node server.js
thats what i mean
one process runs the bot
the other one runs the server
Hmm
I just want to recieve votes from top.gg
and console.log them
but it comes with a error
in heroku logs
o
so how do I fix the error
^^
this was my error
yeah that happens because you don't have any web processes yet
it shouldn't happen after you enable the web process from your procfile
yea
then how are you running your webhook

I didnt
I just saw top.gg docs
for seeing votes
And did the same
but got this error in heroku
sorry, but could someone help me with the webhook? how did I create the link exactly?

const dbl = "new token", { webhookPort: 5000, webhookAuth: 'pass123' })
dbl.webhook.on('ready', hook =>
{
console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbl.webhook.on('vote', vote =>
{
console.log(`User with ID ${vote.user} just voted!`);
});
module.exports.config = {
displayName: 'voting',
dbName: 'greedow-2',
}
this is the xode
so what im looking at it has in the examples class TopGG(commands.cog) what do i use if i dont use cogs?
@ me with an answer please
My bot code?
Ok good haha, I dont have my code on git
Yeah give me a second
A simple API wrapper for top.gg written in Python. Contribute to top-gg/python-sdk development by creating an account on GitHub.
I havent looked too much at the github, but it seems the same as the example in the docs
So same question
@red glacier you can use classes without cogs
btw
just replace @commands.Cogs.listener with “@bot.evet”
The def setup(bot) bot.add_cog(TopGG(bot))
Do I just remove add_cog?
I might try cogs, but atm all my code is in one file haha
Gonna stay like that till I get bored and try cogs out
@forest shard
ok
How do I remove the cog
In the bot.add_cog thingy
Can I just remove it...?
@forest shard sorry for another ping haha
mhm
I'm trying to figure out how to post my shard count in dbl.py but I can't quite wrap my head around this
you can just use the auto post snippet
https://top.gg/api/docs#pylib
@forest shard if you can, can you join vc and help me out?
Can’t rn
ok
this is event right
thats guild count tho
I'm reading the documents and it's not that clear right now
yea
guild count is posted with shard count
class TopGG(commands.cog) with class TopGG()
is that a problem, cause it isnt working
wdym
what am i doing wrong lol
what are shards?
Shards are a thing that are needed for 2500+ guild bots
I'm trying to figure out how to display my shard count
It basically separates your bot into a lot of different connections for discord
ok
already am
no
npnp, we all do it
yeah thanks though seriously
pretty sure i drive shiv crazy with my questions.
well we are a community that help each other so
I've helped people too it goes around and comes around doesn't it
100%
haha
Ok so can somebody help me with getting a guild counter working
im being a dum dum
yeah whats up?
well im trying to put the code from with autopost
https://github.com/top-gg/python-sdk
from here
A simple API wrapper for top.gg written in Python. Contribute to top-gg/python-sdk development by creating an account on GitHub.
and i dont have cogs
so i have to edit it
and im not sure how to change all of it
you can make a cog quickly it's not hard don't worry
do i need a cog for the counter?
make a folder in with your main file and then make a file called "gg.py"
its easy don't worry
I'll walk you through this
can u join vc?
ok
its ifne
so just make a file called gg.py or any name
thats in the same folder as my bot.py
import dbl
import discord
from discord.ext import commands
class TopGG(commands.Cog):
"""Handles interactions with the top.gg API"""
def __init__(self, bot):
self.bot = bot
self.token = 'dbl_token' # set this to your DBL token
self.dblpy = dbl.DBLClient(self.bot, self.token, autopost=True) # Autopost will post your guild count every 30 minutes
async def on_guild_post():
print("Server count posted successfully")
def setup(bot):
bot.add_cog(TopGG(bot))
use this
let me get my actual bot open 1 second
so make a folder called anything maybe even just 'cogs'
now you want to just load the cog
and you're done
yeah
it seems overwhelming it's not dw
how do i load the cog?
personally I use os
new to python?
somewhat yeah
we are supposed to not directly tell you
started 2 months ago
but I have no idea how to not 
i mean
I am a discord.py dev so yeah
then
for filename in os.listdir('./pers'):
if filename.endswith('.py'):
client.load_extension(f'pers.{filename[:-3]}')
change pers to whatever you use
for the folder name
and then run
and thats your guild count
=)
so ./pers = /cogs?
basically since I didn't do the whole you learn yourself
what you are doing is taking the file and setting up the cog by pulling all .pys in the folder (x)
so if you made another file in there you would add the setup and class
ok
Hey, why does on_dbl_test work, but on_dbl_vote doesnt? discord.py 😅
and then use @commands.command() not @client.command / @bot.command
use @commands.command() where?
so that's an explanation of both cogs and servers
in the cog?
oh ok
That's me explainging how to cog since it's better for organisation
does what I said work?
like "Folder" instead of pers
no
so one sec
this is pers on my bot
you change pers to whatever your folder is called
(my bot name)
ok ok
yeah i did that
cool
make sure its in "" for a string
and now your guild count should have posted hopefullly
it will update it every 30 minutes
ok i bet this is just a dumb mis-interpretation, but what folder, do i put as /pers
no you can put it as anything
what did you call the folder with the .py you made for this?
cogs
ok
for filename in os.listdir('./cogs'):
if filename.endswith('.py'):
client.load_extension(f'cogs.{filename[:-3]}')
you use this
pers / cogs is just the folder name
oh i was erroring for a udmb reason
i was putting this code onto my second bot
but this needs to be on my first bot as i can use my second bot to test this with xD
so if you ever want to code a lot of cogs you can seperate them by changing that
and using @commands.command() instead of @client.command()
ok
discord.ext.commands.errors.NoEntryPointError: Extension 'cogs.gg' has no 'setup' function.
i dunno
can you show me the folder
cogs folder?
what is in gg.py
it is a 0 kb file
you have no idea how badly I as a Linux user hate the Windows GUI lol
Either way it should have the actual code I sent in
https://www.youtube.com/watch?v=vQw8cFfZPx0 maybe this video can help xD
but did u copy
in the gg.py file?
import dbl
import discord
from discord.ext import commands
class TopGG(commands.Cog):
"""Handles interactions with the top.gg API"""
def __init__(self, bot):
self.bot = bot
self.token = 'dbl_token' # set this to your DBL token
self.dblpy = dbl.DBLClient(self.bot, self.token, autopost=True) # Autopost will post your guild count every 30 minutes
async def on_guild_post():
print("Server count posted successfully")
def setup(bot):
bot.add_cog(TopGG(bot))
In this video, we learn about cogs and how to implement them in a discord bot.
If you have any suggestions for future videos, leave it in the comments below.
GITHUB: https://github.com/Rapptz/discord.py
DOCUMENTATION: https://discordpy.readthedocs.io/en/latest/
OFFICIAL DISCORD.PY SERVER: https://discord.gg/r3sSKJJ
JOIN MY HELP SERVER: https:...
mightve forgotten to save he code
yeah he did
^^
that's fine dude
you're nearly done
Guddi I just walked him through it myself manually lol
ok bot ran all good
👍 good
now i need to puit this into my actual bot to see if it actually works
yes
make sure to use the correct token haha
and then you can flex your incredible server count 
also it looks far nicer than N/A lol
yeah
even then it's an improvement

do you have an idea? ^^
sometimes the question solves the problem xD
now someone voted and it worked 
wow.....
no problem xD
whats the code you're using so I can put it into my dev build and do some troubleshooting
or just read it and go "oh"

yea i know
_test worked on a test
_vote doesnt on a vote
but now it do 
i do spend too much time here helping people with libs i dont use in languages i dont know 😄
@restive otter ok it doesnt seem to work on the pi after i moved it over, but works on windows
any idea why?
hmmm
do you have the dbl extension installed?
hmm
Could not find a version that satisfies the requirement dblpy (from versions:) How do i fix that @restive otter ?
i think that might be the error that happens when you have a specific python version
for some reason the lib doesnt work with a specific version of py
how do i fix it then?
so in order to run the bot i use screen -dmS Digibot python3 Bot.py
is the python3 part the problem..?
use what?
let me get the code
Install from source
git clone https://github.com/top-gg/DBL-Python-Library
cd DBL-Python-Library
pip install -R requirements.txt
A simple API wrapper for top.gg written in Python. Contribute to top-gg/python-sdk development by creating an account on GitHub.
lol







