Make A Simple Website For Your Discord Bot Without Any HTML Knowledge!
Project description
DiscordBotWeb
New Release Notes
- Published 7/15/2021 (v0.0.1)
- Fixed Errors And Published 7/15/2021 (v0.0.2)
- Fixed Bug And Published 7/15/2021 (v0.0.3)
Features
- Made With The Powerful Module, OS
- No HTML Prior Knowledge Required
- Made To Be Used With Flask
How It Works
import botweb
- You Guys Should Know What This Does, It Imports The Module
botweb.web(name, description, link, filename)
- This Is Where It Gets Tricky, Lets Break It Down,
botweb.web()
is the function itself,name, description, link, filename
Are The Attributes For The Function.- The
name
Attribute Is For The Name Of Your Bot. Secondly, Thedescription
Attribute Is A Small Description Of Your Bot, Make Sure It Is Under 10 Words For A Clean Looking Website. Thirdly, Thelink
Attribute Is For The Link Of Your Bot, The Link Will Be Used For The Invite Button. Lastly, Thefilename
Attribute Is The Name That You Want Your HTML File To Be Named.
- The
- This Is Where It Gets Tricky, Lets Break It Down,
Example With Flask
- Please Note That You Must Use Flask
from flask import Flask, render_template
import botweb
app = Flask(__name__)
@app.route("/")
def main():
# Make Sure To Keep An Logo Of Your Bot In The Same Directory Of This Python File
botweb.web("Bot Name", "Description Of Bot", "Invite Link", "index") # The Last Attribute Is The Name That You Want The HTML File To Be
return render_template("index.html") # Make Sure It Is The Same Name As You Put In The Last Attribute When Calling botweb.web(), And Just Add The .html Extension.
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5555)
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
DiscordBotWeb-0.0.3.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file DiscordBotWeb-0.0.3.tar.gz
.
File metadata
- Download URL: DiscordBotWeb-0.0.3.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1771d7729853f1be445b0d6a20eb958660145e7ed5bb389459aa7314ad61496 |
|
MD5 | af8500adb2e0990ec3a366f94b8d1963 |
|
BLAKE2b-256 | 236fcc30c81c19775ab0f6fec69030e25a7938fd390d20640470a37d8c7f2de4 |
File details
Details for the file DiscordBotWeb-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: DiscordBotWeb-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a46a3b9a03566cd6d3b2db22d3965d96f1d489460e9b8a70d7505a2069c30d48 |
|
MD5 | 704aa28ae546fd565e98e1b0822afa06 |
|
BLAKE2b-256 | 6c8bf32dba3f753e42cdc87b3954a0cb00a1165f8f00097a3d5b71770cb7e1c5 |