Compare commits

..

No commits in common. "61219d52ef189dfcc9f8914927ae284286bc4ec2" and "68bd6ca2828771ed6b61c9845e7995feff9a2218" have entirely different histories.

2 changed files with 9 additions and 30 deletions

View file

@ -11,9 +11,6 @@ class Bot(discord.Client):
if message.author.bot:
return
if isinstance(message.channel, discord.DMChannel):
await message.channel.send("DMを確認")
if message.content == "/hello":
await message.channel.send("こんにちは!!!!")
@ -42,39 +39,25 @@ class Cert():
elif result[0][1] == username and result[0][2] == password:
return 0
#cert = Cert()
class Web(flask.Flask):
async def temp(self):
print("")
config_dir_path = "./confg/"
db_config_path = config_dir_path + "db.json"
if not os.path.isfile(db_config_path):
if not os.path.isdir(config_dir_path):
os.mkdir(config_dir_path)
db_config = {
"host": "localhost",
"db": "dislocker",
"username": "user",
"password": "example_pass"
}
with open(db_config_path, "w") as w:
json.dump(db_config, w, indent=4)
elif os.path.isfile(db_config_path):
with open(db_config_path, "r") as r:
db_config = json.load(r)
cert = Cert()
print(cert.get_username("suti7", "0126"))
bot_config_path = config_dir_path + "bot.json"
bot_config_path = "./config/bot.json"
if not os.path.isfile(bot_config_path):
if not os.path.isdir(config_dir_path):
os.mkdir(config_dir_path)
bot_config = {
"token": "TYPE HERE BOTS TOKEN KEY"
"token": ""
}
with open(bot_config_path, "w") as w:
json.dump(bot_config, w, indent=4)
elif os.path.isfile(bot_config_path):
with open(bot_config_path, "r") as r:
with open("./config/bot.json", "r") as r:
bot_config = json.load(r)
intents = discord.Intents.default()

View file

@ -1,4 +0,0 @@
discord.py
flask
flask-login
psycopg2