Giter Site home page Giter Site logo

mecha-karen / acord Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 7.0 1.36 MB

An API wrapper for discord, built using aiohttp and pydantic.

Home Page: https://acord.rtfd.io

License: GNU General Public License v3.0

Python 100.00%
python api-wrapper discord oop pydantic aiohttp asyncio discord-bots discord-api

acord's Introduction

ACord

An API wrapper for the discord API

License: GPL-3.0 License (see the LICENSE file for details) covers all files in the acord repository unless stated otherwise.

Acord is coming out of ALPHA development, it is somewhat ready for production. However, there may be a few bugs with certain routes!

Features

  • Flexible and customizable
  • Proper caches and ratelimiters
  • Objects are customizable and can be exported with ease
  • async and await syntax
  • Always up to date with the discord API (v10)
  • Optimised in speed and memory

Installation

Python >=3.8 is required

Development

# Install directly from github, this is the best option as of now!

## Linux/Mac OS
pip3 install -U git+https://github.com/Mecha-Karen/acord

## Windows
pip install -U git+https://github.com/Mecha-Karen/acord

# From source
git clone https://github.com/Mecha-Karen/acord

## pip for windows
pip3 install .

Examples

Examples can be found Here!

Links

acord's People

Contributors

daftscientist avatar dependabot[bot] avatar dorukyum avatar illuminatifish avatar keenanoh avatar marzaelise avatar mlbott avatar seniatical avatar sldless avatar tweak4141 avatar vedrecide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

acord's Issues

Change the logo

Alright, so the logo is not that good. Why? Well, two shades of green that are slightly similar to each other are used in the logo. However, from afar, those shades of green sort of blend together into one shade of green.

Instead of using the same color but a different shade, consider using a color wheel thing to find two colors that fit well together.

Thank you!

A question

Describe the bug
A clear and concise description of what the bug is.

Reproducible code

# Your code here

Here in examples/commander/commander.py
Full error message

Error raised
  File "C:\Users\blzza\Downloads\acord\examples\commander\commander.py", line 147, in <module>
    bot.run(token=...) # replace with test token
  File "C:\Users\blzza\Downloads\acord\examples\commander\acord\client\client.py", line 678, in run
    from acord.rest import RestApi
  File "C:\Users\blzza\Downloads\acord\examples\commander\acord\rest\__init__.py", line 1, in <module>
    from .rest import RestApi
  File "C:\Users\blzza\Downloads\acord\examples\commander\acord\rest\rest.py", line 77, in <module>
    class RestApi:
  File "C:\Users\blzza\Downloads\acord\examples\commander\acord\rest\rest.py", line 137, in RestApi
    loop: asyncio.AbstractEventLoop = asyncio.get_event_loop(),
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3312.0_x64__qbz5n2kfra8p0\lib\asyncio\events.py", line 642, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'MainThread'.

Expected behavior
A clear and concise description of what you expected to happen.

I expected the bot to run and slash cmds to work

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Service: Desktop
  • OS: Windows
  • Python Version: Latest 10.x
  • Acord Version Latest
  • Any of notes: ...

Additional context
Add any other context about the problem here.
While I understand that this is NOT related to this repository I was curious if there was a solution for this

Voice Encoding Issue

When encoding voice an issue occurs either with PyNaCl or the Pyogg encoder.
New Ffmpeg player doesn't seem to cause this issue either as the PCM source it generated is perfectly fine and can easily be ran

Voice Keep Alive Continues To Runs After Disconnect

Describe the bug
After OP 13 has been dispatched voice keep alive manager continues to send heartbeats

Reproducible code

            channel = self.get_channel(913890363217965148)
            m = await message.reply(content="Joining VC shortly")
            await channel.join()
            await m.edit(content="Joined VC")
            await channel.leave()
            await m.edit(content="Left VC")
            # Monitor heartbeats in logs

Full error message

N/A

Expected behavior
Heartbeating should've stopped

Screenshots
If applicable, add screenshots to help explain your problem.

Enviroment (please complete the following information):

  • Service: Desktop
  • OS: Windows 10
  • Python Version: 3.9.5
  • Acord Version 0.0.1a3
  • Any of notes: voice branch

Additional context
Add any other context about the problem here.

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.