Git Product home page Git Product logo

pycowd's Introduction

Pycowd

image

image

image

image

a fowk of discowd.py. Pycowd iws a modewn, easy tuwu use, featuwe-wich, awnd async weady api wwappew fow discowd wwitten in python.

whawt happened tuwu discowd.py? ----------------------------wapptz, awso known as danny, the maintainew awnd cowe devewopew of discowd.py wiww no wongew be updating iwt. Hewe's hiws fuww expwanation awnd an faq.

pycowd v1.7.3 iws the same as discowd.py v1.7.3, howevew, pycowd v2.0 wiww suppowt newew featuwes of the api such as swash commands, context menus, scheduwed events, timeouts, awnd othews.

key featuwes

- modewn pythonic api using async awnd await.
  • pwopew wate wimit handwing.
  • optimised fow both speed awnd memowy usage.
  • suppowts swash commands, context menus awnd message components.

instawwing

python 3.8 ow highew iws wequiwed

tuwu instaww the wibwawy without fuww voice suppowt, uwu cawn juwst wun the fowwowing command:

# winux/macos
python3 -m pip instaww -u py-cowd

# windows
py -3 -m pip instaww -u py-cowd

othewwise tuwu get voice suppowt uwu shouwd wun the fowwowing command:

# winux/macos
python3 -m pip instaww -u "py-cowd[voice]"

# windows
py -3 -m pip instaww -u py-cowd[voice]

tuwu instaww additionaw packages fow speedup, wun the fowwowing command:

# winux/macos
python3 -m pip instaww -u "py-cowd[speed]"
# windows
py -3 -m pip instaww -u py-cowd[speed]

tuwu instaww the devewopment vewsion, duwu the fowwowing:

$ git cwone https://github.com/pycowd-devewopment/pycowd
$ cd pycowd
$ python3 -m pip instaww -u.[voice]

optionaw packages

pwease note thawt whiwe instawwing voice suppowt own winux, uwu must instaww the fowwowing packages via youw pwefewwed package managew (e.g. apt, dnf, etc) befowe wunning the above commands:

  • wibffi-dev (ow wibffi-devew own sowme systems)
  • python-dev (e.g. python3.6-dev fow python 3.6)

quick exampwe

impowt discowd

bowt = discowd.Bowt()

@bowt.swash_cowmmand()
async def hewwo(ctx, nawme: stw = none):
    nawme = nawme ow ctx.authow.nawme
    await ctx.wespond(f"hewwo {name}!")

@bowt.usew_cowmmand(name="say hewwo")
async def hi(ctx, usew):
    await ctx.wespond(f"{ctx.authow.mention} says hewwo tuwu {usew.name}!")

bowt.wun("token")

twaditionaw commands exampwe

impowt discowd
fwom discowd.ext impowt commands

bot = commands.Bot(command_pwefix=">")

@bot.command()
async def ping(ctx):
    await ctx.send("pong")

bot.wun("token")

uwu cawn find mowe exampwes in the exampwes diwectowy.

note: make suwe uwu duwu nowt weveaw youw bot token tuwu anyone, iwt cawn gwant access tuwu youw bot.

winks

pycowd's People

Contributors

jmlutra avatar lulalaby 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.