proxy
This commit is contained in:
4
main.py
4
main.py
@@ -19,6 +19,7 @@ class getcfg:
|
|||||||
print("Maybe you didn't setup your .env file")
|
print("Maybe you didn't setup your .env file")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
self.prefix = os.getenv('PREFIX')
|
self.prefix = os.getenv('PREFIX')
|
||||||
|
self.proxy = os.getenv('PROXY')
|
||||||
|
|
||||||
def getprefix(self):
|
def getprefix(self):
|
||||||
return self.prefix
|
return self.prefix
|
||||||
@@ -26,6 +27,8 @@ class getcfg:
|
|||||||
def gettoken(self):
|
def gettoken(self):
|
||||||
return self.token
|
return self.token
|
||||||
|
|
||||||
|
def getproxy(self):
|
||||||
|
return self.proxy
|
||||||
|
|
||||||
class Bot(commands.Bot):
|
class Bot(commands.Bot):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -36,6 +39,7 @@ class Bot(commands.Bot):
|
|||||||
super().__init__(
|
super().__init__(
|
||||||
command_prefix=self.getcfg.getprefix(),
|
command_prefix=self.getcfg.getprefix(),
|
||||||
intents=discord.Intents.all(),
|
intents=discord.Intents.all(),
|
||||||
|
proxy=self.getcfg.getproxy(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user