filmov
tv
Making a Basic Discord Bot using Python (Part 1)

Показать описание
Links used in the video :
Code -:
import discord
import asyncio
import json
import random
import datetime
import traceback
import sys
import express
import socket
import flask
import threading
import asyncio
import os
import selenium
import random
from jokes import *
bot = commands.Bot(command_prefix='!', help_command = None, case_insensitive=True)
from selenium import webdriver
from flask import Flask
from threading import Thread
app = Flask('')
def main():
return "Bot came to life "
def run():
def keep_alive():
server = Thread(target=run)
#================= START BOT CODE ===================
async def on_ready():
print('Ready!')
keep_alive()
Copyright Disclaimer under Section 107 of the copyright act 1976, allowance is made for fair use for purposes such as criticism, comment, news reporting, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favour of fair use.
Code -:
import discord
import asyncio
import json
import random
import datetime
import traceback
import sys
import express
import socket
import flask
import threading
import asyncio
import os
import selenium
import random
from jokes import *
bot = commands.Bot(command_prefix='!', help_command = None, case_insensitive=True)
from selenium import webdriver
from flask import Flask
from threading import Thread
app = Flask('')
def main():
return "Bot came to life "
def run():
def keep_alive():
server = Thread(target=run)
#================= START BOT CODE ===================
async def on_ready():
print('Ready!')
keep_alive()
Copyright Disclaimer under Section 107 of the copyright act 1976, allowance is made for fair use for purposes such as criticism, comment, news reporting, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favour of fair use.