It's HACKTOBER
amasad (2031)

Skeleton cow to start your october

You are viewing a single comment. View All
replitcode (104)

NICEEEEE! HAPPY HACKTOBER EVERYONE!
P.S. I HACKED ALL Y'ALL'S COMPUTERS!!! YOUR WELCOME!

here's a little code to start your hacktober-ific day...

import random
import discord
import asyncio
from flask import Flask
from threading import Thread
from os import getenv
client = discord.Client()
phrases = [
"Happy hacktober",
"Hacktober never fails",
"Hacktober finally came",
"Hacktobers the one day i can hack you",
"Hacktober is why i love my (nonexistent) day job",
"This is my last message in my dictionary of phrases about hacktober",
]
@client.event
async def on_message(message):
 if message.content.startswith("!hacktober"):
  await client.send_message(message.channel, str(random.choice(phrases)))
 elif message.content.startswith("!amasad"):
  await client.send_message(message.channel, "Amasad made a cow for some reason! who knows what he meant! right?")
 elif message.content.startswith("!timchen"):
  await client.send_message(message.channel, "Timchen is the greatest we must praise him \o/ he is our savior")

@client.event
async def on_ready():
	print("---------------")
	print('Logged in as:')
	print(client.user.name)
	print(client.user.id)
	print("---------------")

@app.route('/')
def run_forever():
	return 'Server Started!'

def run_bot():
	client.run(getenv('TOKEN'))
	print("bot running")
def run_app():
	app.run('0.0.0.0',8080)
	print("web running")
Thread(target=run_app).start()
run_bot()