0% found this document useful (0 votes)
4 views186 pages

YDK

This document outlines a Discord bot implemented using Python that allows users to fetch anime information and images through various commands. It utilizes the Discord API, aiohttp for asynchronous HTTP requests, and pandas for handling anime data from a CSV file. The bot includes commands for searching anime by name, sending random anime images, and periodically posting images to a specified channel.

Uploaded by

hieumai1346
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views186 pages

YDK

This document outlines a Discord bot implemented using Python that allows users to fetch anime information and images through various commands. It utilizes the Discord API, aiohttp for asynchronous HTTP requests, and pandas for handling anime data from a CSV file. The bot includes commands for searching anime by name, sending random anime images, and periodically posting images to a specified channel.

Uploaded by

hieumai1346
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 186

import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:
for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="Here is your random anime
image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:


if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:


if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()
async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:
await ctx.send("Couldn't fetch an anime image at the moment, try
again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]
# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random
anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"


f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)
await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'
@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)
else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328
sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",
"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)
except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance


bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'
xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]
# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()


image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())


@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")


@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe


result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):


async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:
await ctx.send("Couldn't fetch an anime image at the moment, try
again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="Here is your random anime
image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)
else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="Here is your random anime
image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:
data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:
# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task


bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")


else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]
# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)
else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]
# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio
import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"


f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:
await ctx.send("Couldn't fetch an anime image at the moment, try
again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="Here is your random anime
image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'
aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:
data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return
# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()
intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):


await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:


if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)
else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:
print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)


# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'
xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")
embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()


image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")


embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()


image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)
async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():


print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]
if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:
data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()
async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:
await ctx.send("Couldn't fetch an anime image at the moment, try
again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()
async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:
await ctx.send("Couldn't fetch an anime image at the moment, try
again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")
embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")
response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai


import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"


f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)
else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="Here is your random anime
image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'
aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:
data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return
# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()
intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):


await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:


if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)
else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:
print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)


# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'
xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")
embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()


image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")


embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()


image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)
async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():


print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]
if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:
data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()
async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:
await ctx.send("Couldn't fetch an anime image at the moment, try
again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()
async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:
await ctx.send("Couldn't fetch an anime image at the moment, try
again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")
embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")
response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai


import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"


f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)
else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="Here is your random anime
image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'
aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:
data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return
# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()
intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):


await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:


if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)
else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:
print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)


# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'
xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")
embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()


image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")


embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()


image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)
async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():


print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]
if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:
data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()
async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:
await ctx.send("Couldn't fetch an anime image at the moment, try
again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()
async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:
await ctx.send("Couldn't fetch an anime image at the moment, try
again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")
embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")
response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai


import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"


f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)
else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="Here is your random anime
image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'
aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord


embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:
data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return
# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()
intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):


await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:


if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")
@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)
else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:
print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)


# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]

if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'
xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")
embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()


image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")


embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()


image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:


async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)
async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")

response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():


print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN')) import aiohttp, os, discord

import pandas as pd

from discord.ext import commands, tasks

import google.generativeai as genai

import requests

import asyncio

import random

anime_data = pd.read_csv('anime.csv')

intents = discord.Intents.default()

intents.message_content = True

# Create a bot instance

bot = commands.Bot(command_prefix='!', intents=intents)

# Command: Fetch anime information by name

@bot.command()

async def anime(ctx, *, anime_name: str):

# Search for the anime in the dataframe

result = anime_data[anime_data['name'].str.contains(anime_name,
case=False, na=False)]
if result.empty:

await ctx.send("Anime not found.")

else:

for index, row in result.iterrows():

# Send anime information

await ctx.send(f"**{row['name']}**\n"

f"Thể Loại: {row['genre']}\n"

f"Kiểu: {row['type']}\n"

f"Số Tập: {row['episodes']}\n"

f"Đánh Giá: {row['rating']}\n"

f"Lượt Xem: {row['members']}\n"

f"-----------")

@bot.command()

async def ping(ctx):

await ctx.send(f'Pong! {round(bot.latency * 1000)}ms')

xwa = 'https://api.waifu.pics/nsfw/waifu'

xne = 'https://api.waifu.pics/nsfw/neko'

xtr = 'https://api.waifu.pics/nsfw/trap'

xblo = 'https://api.waifu.pics/nsfw/blowjob'

@bot.command()

async def xwaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xwa) as response:

if response.status == 200:
data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xne) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()
async def xtrap(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xtr) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def xgif(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(xblo) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:
await ctx.send("Couldn't fetch an anime image at the moment, try
again later!")

#-----------------------------------------------------------------------------------

awa = 'https://api.waifu.pics/sfw/waifu'

ane = 'https://api.waifu.pics/sfw/neko'

aki = 'https://api.waifu.pics/sfw/kiss'

acud = 'https://api.waifu.pics/sfw/cuddle'

apa = 'https://api.waifu.pics/sfw/pat'

@bot.command()

async def apat(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(apa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()
async def acuddle(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(acud) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Ngoan Ngoan ^^")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def awaifu(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(awa) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:
await ctx.send("Couldn't fetch an anime image at the moment, try
again later!")

@bot.command()

async def akis(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(aki) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="@_@ mlem mlem")

embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

@bot.command()

async def aneko(ctx):

async with aiohttp.ClientSession() as session:

async with session.get(ane) as response:

if response.status == 200:

data = await response.json()

image_url = data["url"]

# Send the image to Discord

embed = discord.Embed(title="Here is your random anime


image!")
embed.set_image(url=image_url)

await ctx.send(embed=embed)

else:

await ctx.send("Couldn't fetch an anime image at the moment, try


again later!")

#--------------------------------------------------------------

CHANNEL_ID = 1295014200967561328

sfw_categories = ["waifu", "neko", "shinobu", "megumin", "bully", "cuddle",


"cry", "hug", "awoo", "kiss", "lick", "pat", "smug", "bonk", "yeet", "blush",
"smile", "wave", "highfive", "handhold", "nom", "bite", "glomp", "slap", "kill",
"kick", "happy", "wink", "poke", "dance", "cringe"]

bot = commands.Bot(command_prefix="!", intents=discord.Intents.all())

@tasks.loop(seconds=60)

async def send_waifu_image():

try:

# Chọn ngẫu nhiên một loại ảnh

category = random.choice(sfw_categories)

# Gọi API để lấy URL ảnh

response = requests.get(f"https://api.waifu.pics/sfw/{category}")
response.raise_for_status() # Kiểm tra lỗi HTTP

image_url = response.json()["url"]

# Lấy kênh mặc định

channel = bot.get_channel(CHANNEL_ID)

if channel is None:

print(f"Không tìm thấy kênh có ID {CHANNEL_ID}")

return

# Gửi ảnh

await channel.send(image_url)

except requests.exceptions.RequestException as e:

print(f"Lỗi khi gọi API: {e}")

except Exception as e:

print(f"Lỗi khác: {e}")

@bot.event

async def on_ready():

print(f"{bot.user} đã kết nối!")

send_waifu_image.start() # Bắt đầu task

bot.run(os.getenv('DISCORD_TOKEN'))import discord

import nekos

import os

from discord.ext import tasks


# Token bot Discord (thay bằng token của bạn)

TOKEN = 'YOUR_DISCORD_BOT_TOKEN'

# ID của kênh Discord nơi bạn muốn gửi ảnh định kỳ

# Thay bằng ID của kênh Discord bạn muốn gửi ảnh

WALL_ID = 1295293677828309032

# Tạo client Discord với prefix và intents đầy đủ quyền

client = discord.Client(intents=discord.Intents.all())

# Sự kiện khi bot đã sẵn sàng

@client.event

async def on_ready():

print(f'Bot đã đăng nhập với tên: {client.user}')

# Khởi động task gửi ảnh mỗi 1 phút

send_image_task.start()

# Hàm gửi ảnh từ Nekos API theo lệnh

async def send_nekos_image(command, message):

try:

image_url = nekos.img(command) # Lấy ảnh từ endpoint tương ứng

await message.channel.send(image_url)

except Exception as e:

await message.channel.send(f"Đã xảy ra lỗi: {e}")

# Sự kiện khi bot nhận tin nhắn


@client.event

async def on_message(message):

if message.author == client.user:

return

# Danh sách các lệnh có sẵn

commands = ['wallpaper', 'ngif', 'tickle', 'feed', 'gecg', 'gasm', 'slap',

'avatar', 'lizard', 'waifu', 'pat', '8ball', 'kiss', 'neko',

'spank', 'cuddle', 'fox_girl', 'hug', 'smug', 'goose', 'woof']

# Kiểm tra lệnh và gửi ảnh

for command in commands:

if message.content.startswith(f"!{command}"):

await send_nekos_image(command, message)

return

# Tạo task tự động gửi ảnh vào kênh mỗi phút

@tasks.loop(minutes=1)

async def send_image_task():

# Kiểm tra nếu bot đã sẵn sàng

if client.is_ready():

# Lấy kênh bằng ID

channel = client.get_channel(WALL_ID)

if channel:

neko_image_url = nekos.img('wallpaper') # Lấy ảnh từ endpoint


'neko'

You might also like