This file contains 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 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) |
This file contains 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 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(): |
This file contains 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
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 |