Skip to content

Instantly share code, notes, and snippets.

@AxizY
AxizY / voting-bot.py
Last active July 27, 2021 16:06
code for voting bot (very very slopyy)
import discord
from discord.ext import commands
import sqlite3
conn = sqlite3.connect('new.db')
intents = discord.Intents.default()
intents.members = True
c = conn.cursor()
c.execute("CREATE TABLE IF NOT EXISTS users (id INTEGER, vote1 INTEGER, vote2 Integer)")
client = commands.Bot(command_prefix = '!',intents=intents)
@AxizY
AxizY / Discord.Py
Last active November 30, 2022 15:11
import discord
from discord.ext import commands
import asyncio
import random
client = commands.Bot(command_prefix = '/')
client.remove_command('help')
@client.event
async def on_ready():
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BlockPlace : MonoBehaviour
{
public GameObject tile; //sprite you want to use (for me it is a 1x1 which has 1 pixel per unity)
public Camera cam; // main camera
private List<GameObject> alrPlaced;
public GameObject tilesHolder; //empty gameobject that holds all of the tiles as children so the hierarchy isnt crazy