selfbot-legacy/app.py

26 lines
499 B
Python
Raw Permalink Normal View History

2025-05-07 16:44:50 +02:00
import discord
import asyncio
2025-05-09 21:43:55 +02:00
import logging
2025-05-07 16:44:50 +02:00
import os
2025-05-09 21:43:55 +02:00
from bot.selfbot import SelfBot
from config import TOKEN
def main():
# Configure logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
2025-05-07 16:44:50 +02:00
2025-05-09 21:43:55 +02:00
# Set up Discord client
intents = discord.Intents.all()
2025-05-07 16:44:50 +02:00
2025-05-09 21:43:55 +02:00
# Create the selfbot
client = SelfBot(intents=intents)
# Run the bot
client.run(TOKEN)
2025-05-07 16:44:50 +02:00
2025-05-09 21:43:55 +02:00
if __name__ == "__main__":
main()