Auto Banner Updater #85
Abyzzboys
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
import discord
import requests
import asyncio
from PIL import Image, ImageDraw, ImageFont
intents = discord.Intents.default()
intents.members = True
client = discord.Client(intents=intents)
@client.event
async def on_ready():
print('Logged in as {0.user}'.format(client))
while True:
await client.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="#what listening?"))
await update_banner()
await asyncio.sleep(80)
async def update_banner():
guild = client.get_guild(#guild id)
#for set banner, u need have in folder ready image banner and set url image banner. U need have in folder font for banner
#module require:
#pip install pillow
#pip install discord
#pip install request
#pip install asyncio
#by 2101017#0508
Beta Was this translation helpful? Give feedback.
All reactions