Giter VIP home page Giter VIP logo

listcord.py's Introduction

Listcord.py

An official wrapper for the listcord api!

View https://listcord.xyz/apidocs to view the raw api documentation!

Installation

pip install listcord.py

Getting started

Get your api token from https://listcord.xyz/me. The Listcord api is currently only available only for those who have bots registered in our botlist! After getting your token, make sure your token is kept somewhere secret!

import listcord

client = listcord.Client("Replace this with your token!")
print(client.get_bot('some bot id'))

This package also supports asynchronous fetching too!

import listcord
import asyncio

client = listcord.Client("Replace this with your token!")

@asyncio.coroutine
def main():
    bot = yield from client.get_bot_async('some bot id')
    print(bot)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Methods

There are only some methods with the asynchronous ones too!

client.get_bot('801976787264471120') # Returns the information of the bot!
await client.get_bot_async('801976787264471120') # Returns the information of the bot asynchronously!

client.get_bot_reviews('801976787264471120'); # Returns the array of reviews of the bot!
await client.get_bot_reviews_async('801976787264471120'); # Returns the array of reviews of the bot asynchronously!

client.get_review('user id', 'bot id'); # Returns the review details by the discord id of the reviewer and the bot which was reviewed!
await client.get_review_async('user id', 'bot id'); # Returns the review details by the discord id of the reviewer and the bot which was reviewed asynchronously!

client.has_voted('user id', 'bot id'); # Verify if the particular user has voted a paticular bot by id!
await client.has_voted_async('user id', 'bot id'); # Verify if the particular user has voted a paticular bot by id asynchronously!

client.search('shaz'); # Returns the array of the bots which matches your query!
await client.search_async('shaz'); # Returns the array of the bots which matches your query aynchronously!

Contact

listcord.py's People

Contributors

scientific-dev avatar imshvishal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.