A language or a package used to make discord bots..... :)
Project description
Twistor
A language or a package used to make discord bots..... :)
Usage
from twistor.bot import create_bot
bot = create_bot(prefix="!")
bot.run("YOUR_DISCORD_BOT_TOKEN")
Features
- Automatically registers Discord bot commands based on
.twtfiles. - Each
.twtfile contains a message and an optional description for the command. - Supports custom message responses for commands without hardcoding.
Installation
You can install twistor via pip:
pip install twistor
Creating Commands with .twt Files In the same directory where your bot is running, create .twt files for each command.
For example, to create a hello-world command, create a hello-world.twt file:
mesg = "Hello, world!"
When the user types !hello-world in the Discord server, the bot will respond with Hello, world!.
Creating a main.py
from twistor.bot import create_bot
# Define your bot prefix
bot = create_bot(prefix="!")
# Run your bot
bot.run("YOUR_DISCORD_BOT_TOKEN")
License
This project is licensed under the MIT License.
This provides full instructions, usage examples, and explanation of how to set up commands using `.twt` files. Let me know if any changes are needed!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twistor-0.1.0.tar.gz.
File metadata
- Download URL: twistor-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef3726b460f92d4d0bcf121761777857d13ddad07c18c9af5a9f432d67de417c
|
|
| MD5 |
8a4448d14ebcd83083fb33d2bc21a078
|
|
| BLAKE2b-256 |
64730146a89fac090e29fe8cd59154a3b63180f36ceab4fe40a2e15764da0b9e
|
File details
Details for the file twistor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: twistor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a085eaf4816c4d0465b17c595a8d4d06441fde0905f14f1f9f16b7a1b0cb24b6
|
|
| MD5 |
9492494f0d637351b5e3b29d59d9db68
|
|
| BLAKE2b-256 |
f382de1bc290d4df553e4ea84ec1fe768e8f8e0a52a480faa3ed05e5e236f96d
|