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)
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.2.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file DiscordBotWeb-0.0.2.tar.gz
.
File metadata
- Download URL: DiscordBotWeb-0.0.2.tar.gz
- Upload date:
- Size: 3.9 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 | e7d9ce50c5427824ddd95501ddbb3bb7e3a6ab45966769377dcec30640ac9b95 |
|
MD5 | 20332d120708aaef30084d7b7bba3285 |
|
BLAKE2b-256 | 419fb97dc0015fb16ff2f707adaf00244c49a7d824ee5a7fb576698335b89f01 |
File details
Details for the file DiscordBotWeb-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: DiscordBotWeb-0.0.2-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 | 7e78a65af4d08e4ffe99fb3a195b12a479a3801af439904d74b7e409a004e0ac |
|
MD5 | bcef74bd2e45a0d178b4115c7164e71f |
|
BLAKE2b-256 | b10941d08d068a62e42277b02dc58a7eca178116abf84a0e4277728635f2b12b |