🐛
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import discord, os, finnhub, pymongo
|
import discord, os, finnhub
|
||||||
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from pymongo import MongoClient
|
from pymongo import MongoClient
|
||||||
from funcs import logThis, makeFiles, transferUsers, Money, Funcs, SwChar, SwDestiny, SwRoll, Games
|
from funcs import logThis, makeFiles, Money, Funcs, SwChar, SwDestiny, SwRoll, Games
|
||||||
|
|
||||||
commandPrefix = "!"
|
commandPrefix = "!"
|
||||||
|
|
||||||
@@ -55,9 +55,6 @@ makeFiles()
|
|||||||
# Creates the Bot
|
# Creates the Bot
|
||||||
client = Gwendolyn()
|
client = Gwendolyn()
|
||||||
|
|
||||||
# Creates database collections
|
|
||||||
transferUsers(client.database)
|
|
||||||
|
|
||||||
# Logs in
|
# Logs in
|
||||||
@client.event
|
@client.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import random
|
import random
|
||||||
import copy
|
import copy
|
||||||
import math
|
import math
|
||||||
import asyncio
|
|
||||||
|
|
||||||
from .fourInARowDraw import DrawFourInARow
|
from .fourInARowDraw import DrawFourInARow
|
||||||
from funcs import logThis
|
from funcs import logThis
|
||||||
@@ -128,8 +127,8 @@ class FourInARow():
|
|||||||
def placeOnBoard(self,board,player,column):
|
def placeOnBoard(self,board,player,column):
|
||||||
placementx, placementy = -1, column
|
placementx, placementy = -1, column
|
||||||
|
|
||||||
for x in range(len(board)):
|
for x, line in enumerate(board):
|
||||||
if board[x][column] == 0:
|
if line[column] == 0:
|
||||||
placementx = x
|
placementx = x
|
||||||
|
|
||||||
board[placementx][placementy] = player
|
board[placementx][placementy] = player
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import json
|
|||||||
import urllib
|
import urllib
|
||||||
import random
|
import random
|
||||||
|
|
||||||
from . import money
|
|
||||||
from funcs import logThis
|
from funcs import logThis
|
||||||
|
|
||||||
class Trivia():
|
class Trivia():
|
||||||
|
|||||||
Reference in New Issue
Block a user