File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -107,4 +107,5 @@ token.txt
107
107
owner.txt
108
108
* .db
109
109
110
- .vscode
110
+ .vscode
111
+ docs /
Original file line number Diff line number Diff line change
1
+ import discord
2
+
3
+ class Perm :
4
+ def __init__ (self ):
5
+ self .balance = 5
6
+ return
7
+
8
+ def is_owner (self , ctx ):
9
+ if ctx .message .author .id in str (open ("data/bot/owner.txt" , "r" ).readline ().split ("," )):
10
+ return True
11
+ else :
12
+ return False
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ def main(self):
9
9
failO = False
10
10
self .resize (80 ,24 )
11
11
try :
12
- tkn = open ("data/bot/token.txt" ,"r" ).readline ()
12
+ open ("data/bot/token.txt" ,"r" ).readline ()
13
13
except :
14
14
failT = True
15
15
try :
16
- f = open ("data/bot/owner.txt" , "r" ).readline ().split ("," )
16
+ open ("data/bot/owner.txt" , "r" ).readline ().split ("," )
17
17
except :
18
18
failO = True
19
19
if failT or failO is not False :
@@ -118,7 +118,7 @@ def update(self):
118
118
code = subprocess .call (("git" , "pull" , "--ff-only" ))
119
119
except FileNotFoundError :
120
120
print ("\n Error: Git not found. It's either not installed or not in PATH." )
121
- return
121
+ return
122
122
if code == 0 :
123
123
print ("\n Updated successfully." )
124
124
else :
You can’t perform that action at this time.
0 commit comments