Pycowod ======
a fowk of discowd.py. Pycowod 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.
pycowod v1.7.3 iws the same as discowd.py v1.7.3, howevew, pycowod v2.0 wiww suppowt newew featuwes of the api such as swash commands, context menus, scheduwed events, timeouts, awnd othews.
- - modewn pythonic api using
async
awndawait
. - pwopew wate wimit handwing.
- optimised fow both speed awnd memowy usage.
- suppowts swash commands, context menus awnd message components.
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-cowod
# windows
py -3 -m pip instaww -u py-cowod
othewwise tuwu get voice suppowt uwu shouwd wun the fowwowing command:
# winux/macos
python3 -m pip instaww -u "py-cowod[voice]"
# windows
py -3 -m pip instaww -u py-cowod[voice]
tuwu instaww additionaw packages fow speedup, wun the fowwowing command:
# winux/macos
python3 -m pip instaww -u "py-cowod[speed]"
# windows
py -3 -m pip instaww -u py-cowod[speed]
tuwu instaww the devewopment vewsion, duwu the fowwowing:
$ git cwone https://github.com/pycowod-devewopment/pycowod
$ cd pycowd
$ python3 -m pip instaww -u.[voice]
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)
impowt discowod
bowt = discowod.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")
impowt discowod
fwom discowod.ext impowt commands
bot = commands.Bot(command_pwefix=">")
@bot.command()
async def ping(ctx):
await ctx.send("pong")
bowt.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.