All Projects → nextcord → nextcord

nextcord / nextcord

Licence: MIT license
A Python wrapper for the Discord API forked from discord.py

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to nextcord

mass-dm-discord
A MassDM selfbot which is working in 2021. Only for educational purposes 🥱🚀
Stars: ✭ 87 (-90.9%)
Mutual labels:  discord-api, discordpy, discord-py, discordbot
Discord-Bot-TypeScript-Template
Discord bot - A discord.js bot template written with TypeScript.
Stars: ✭ 86 (-91%)
Mutual labels:  bots, bot-framework, discord-api, discordbot
Karuma
Karuma is a Discord Bot including Nukes, Raids, Mass DM and other features. Only for educational purposes 🥱🚀
Stars: ✭ 132 (-86.19%)
Mutual labels:  discord-api, discordpy, discord-py, discordbot
discord-ui
A discord.py extension for sending, receiving and handling ui interactions in discord
Stars: ✭ 28 (-97.07%)
Mutual labels:  discord-api, discordpy, discord-py
spanky.py
Chat-bot overlay framework that can run on top of any python-based bot and call plugins on various events
Stars: ✭ 14 (-98.54%)
Mutual labels:  bots, bot-framework, discord-py
discord-super-utils
A modern python module including many useful features that make discord bot programming extremely easy.
Stars: ✭ 106 (-88.91%)
Mutual labels:  discord-api, discord-py
Klaus-Bot
All files for my discord bot made in Python using discord.py.
Stars: ✭ 16 (-98.33%)
Mutual labels:  discord-py, discordbot
opensource-discordbots
Curated list of awesome open-source Discord Bots
Stars: ✭ 19 (-98.01%)
Mutual labels:  discord-api, discord-py
Dredd
A multipurpose Discord bot written in python language and enhanced discord.py library.
Stars: ✭ 105 (-89.02%)
Mutual labels:  discord-py, discordbot
Awesome Bots
The most awesome list about bots ⭐️🤖
Stars: ✭ 2,864 (+199.58%)
Mutual labels:  bots, bot-framework
Blankly
🚀 💸 Easily build, backtest and deploy your algo in just a few lines of code. Trade stocks, cryptos, and forex across exchanges w/ one package.
Stars: ✭ 1,456 (+52.3%)
Mutual labels:  bots, bot-framework
Spacebot
An open-source, multipurpose, configurable discord bot that does it all (that's the plan, at least)
Stars: ✭ 41 (-95.71%)
Mutual labels:  discord-api, discordpy
axiol
🚀 An advanced Python Discord bot for everyone
Stars: ✭ 39 (-95.92%)
Mutual labels:  discord-py, discordbot
hata
Async Discord API wrapper.
Stars: ✭ 156 (-83.68%)
Mutual labels:  discord-api, api-wrapper
Aometry
An awesome multipurpose discord bot build using discord.js v13 with support for slash commands and context menus
Stars: ✭ 51 (-94.67%)
Mutual labels:  discord-api, discordbot
Luki
[Deprecated] The official repository for Luki the Discord bot
Stars: ✭ 21 (-97.8%)
Mutual labels:  discord-api, discordbot
gitbot
The most popular Discord dev toolkit with 400k+ users 🚀✨
Stars: ✭ 59 (-93.83%)
Mutual labels:  discord-py, discordbot
tatsumaki.js
A api wrapper for the Tatsumaki Discord Bot API
Stars: ✭ 9 (-99.06%)
Mutual labels:  api-wrapper, discordbot
msbotbuilder-go
Microsoft Bot Framework SDK for Go
Stars: ✭ 113 (-88.18%)
Mutual labels:  bots, bot-framework
KannaKamuiBot
A multipurpose bot for fun, emotes, anime, utility, music, nsfw, valorant, moderation, and welcome/leave messages.
Stars: ✭ 64 (-93.31%)
Mutual labels:  bots, discordbot

Nextcord

Discord server invite PyPI version info PyPI version info PyPI supported Python versions Nextcord documentation

Nextcord

A modern, easy-to-use, feature-rich, and async-ready API wrapper for Discord written in Python.

Key Features

  • Modern Pythonic API using async and await
  • Proper rate limit handling
  • Optimised in both speed and memory

Installing

Python 3.8 or higher is required

To install the library without full voice support, you can just run the following command:

# Linux/macOS
python3 -m pip install -U nextcord

# Windows
py -3 -m pip install -U nextcord

Otherwise to get voice support you should run the following command:

# Linux/macOS
python3 -m pip install -U "nextcord[voice]"

# Windows
py -3 -m pip install -U nextcord[voice]

To install additional packages for speedup, run the following command:

# Linux/macOS
python3 -m pip install -U "nextcord[speed]"

# Windows
py -3 -m pip install -U nextcord[speed]

To install the development version, do the following:

$ git clone https://github.com/nextcord/nextcord/
$ cd nextcord
$ python3 -m pip install -U .[voice]

Optional Packages

Please note that on Linux installing voice you must install the following packages via your favourite package manager (e.g. apt, dnf, etc) before running the above commands:

  • libffi-dev (or libffi-devel on some systems)
  • python-dev (e.g. python3.8-dev for Python 3.8)

Quick Example

from nextcord.ext import commands


bot = commands.Bot()

@bot.slash_command(description="Replies with pong!")
async def ping(interaction: nextcord.Interaction):
    await interaction.send("Pong!", ephemeral=True)

bot.run("token")

You can find more examples in the examples directory.

NOTE: It is not advised to leave your token directly in your code, as it allows anyone with it to access your bot. If you intend to make your code public you should store it securely.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].