Skip to content

Instantly share code, notes, and snippets.

View BruceCodesGithub's full-sized avatar
🥽
Doing cool stuff

Bruce BruceCodesGithub

🥽
Doing cool stuff
View GitHub Profile
@BruceCodesGithub
BruceCodesGithub / README.md
Last active April 8, 2022 02:52
TCR Treasure Hunt Season 8

With love, from TCR News

@BruceCodesGithub
BruceCodesGithub / .env
Created December 9, 2021 11:18
AI Chatbot with microphone input
API_KEY=[YOUR RANDOM STUFF API KEY HERE! https://api-info.pgamerx.com/register]
@BruceCodesGithub
BruceCodesGithub / bible.py
Created October 25, 2021 13:16
Get Bible verses Python
import requests
class Bible:
def get(self, book, chapter, verse, **kwargs):
base = f'https://bible-api.com/{book}+{chapter}:{verse}'
translation = kwargs.get('translation') or 'web'
response = requests.get(f"{base}", params={'translation': translation})
return response.json()
@BruceCodesGithub
BruceCodesGithub / setup.py
Created October 13, 2021 11:54
AIOSQLITE with Discord Bots
import discord
from discord.ext import commands
import aiosqlite, asyncio
async def setup():
bot.db = await aiosqlite.connect("storage/bot.db")
await bot.db.execute("CREATE TABLE IF NOT EXISTS mytable (column1, column2)")
await bot.db.commit()
@BruceCodesGithub
BruceCodesGithub / context_menus.md
Last active September 6, 2021 16:17
Application Commands Examples 101

Context Menus

Examples

import discord
from discord.ext import commands
from discord.app import Option # alpha

bot = commands.Bot()

@bot.user_command(name="Wow these can have spaces", description="This created a global user command")