Skip to content

Commit

Permalink
deleted token from comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AKmahim committed Feb 11, 2024
1 parent e8a321a commit de44c0b
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions Discord-bot/discord-1.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,4 @@
# MTIwNTc4NjM4MDI0MDgxODE4Ng.GANQFN.Pf2IKCxzJVtaz_9uU1rnBu5gH5ngmzRfs3QZP8
import discord
from datetime import datetime

# Discord bot token
# TOKEN = 'MTIwNTc4NjM4MDI0MDgxODE4Ng.GANQFN.Pf2IKCxzJVtaz_9uU1rnBu5gH5ngmzRfs3QZP8'

# # Channel ID of the channel you want to fetch messages from
# CHANNEL_ID = 1126873502381768816

# # Date range (inclusive)
# start_date = datetime(2023, 1, 1) # YYYY, MM, DD
# end_date = datetime(2024, 1, 10) # YYYY, MM, DD

# # Initialize Discord client
# client = discord.Client()

# @client.event
# async def on_ready():
# print(f'We have logged in as {client.user}')

# @client.event
# async def fetch_messages():
# channel = client.get_channel(CHANNEL_ID)
# if channel:
# async for message in channel.history(limit=None, after=start_date, before=end_date):
# print(f'{message.created_at}: {message.author.name} - {message.content}')
# else:
# print("Channel not found")

# client.run(TOKEN)

import discord
from datetime import datetime
Expand Down

0 comments on commit de44c0b

Please sign in to comment.