What is Fusion.py you might ask; Fusion.py is a Discord.py fork that
has most of the good features from most of the big Discord.py forks, and
provides a library that has features that other forks has and combines
most of the big forks with some added features.
- Modern Python API async wrapper.
- Rate limit handling.
- Optimised for Speed and Memory.
- Big features combined into one from other forks.
Python 3.8 or higher is required
# Windows $ py -3 -m pip install -U fusion.py # Linux/MacOS $ python3 -m pip install -U fusion.py
Installation with Full Voice Support:
# Windows $ py -3 -m pip install -U fusion.py[voice] # Linux/MacOS $ python3 -m pip install -U fusion.py[voice]
Installing Development Builds:
$ git clone https://github.com/Senarc-Studios/fusion.py $ cd fusion.py $ python3 -m pip install -U .[voice]
`PyNaCl<https://pypi.org/project/PyNaCl>`__ – Used for voice
Please note that on Linux installing voice you must install the
following packages via your package manager (e.g. “apt“) before
running the commands above:
- libffi-dev (or
libffi-develon some systems)
- python-dev (e.g.
python3.6-devfor Python 3.6)
import discord class MyClient(discord.Client): async def on_ready(self): print('Logged on as', self.user) async def on_message(self, message): # To make sure that the bot doesn't respond to it's own messages. if message.author == self.user: return if message.content == 'ping': await message.channel.send('pong') client = MyClient() client.run('your-token')
import discord from discord.ext import commands bot = commands.Bot(command_prefix="!", slash_interactions=True) @bot.command(slash_interaction=True) async def ping(ctx): await ctx.send("pong", ephemeral=True) bot.run("your-token")
Fusion Outsourced Credits
Fusion.py wouldn’t be made possible without these projects andcontributors.