This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import google.generativeai as genai | |
GOOGLE_API_KEY = 'google api key here' | |
genai.configure(api_key=GOOGLE_API_KEY) | |
for m in genai.list_models(): | |
if 'generateContent' in m.supported_generation_methods: | |
print(m.name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# online status | |
@bot.event | |
async def on_ready(): | |
print(f'Logged in as {bot.user.name} (ID: {bot.user.id})') | |
await bot.change_presence(status=discord.Status.online) | |
# idle status | |
@bot.event | |
async def on_ready(): |