Compare commits
No commits in common. "22a32841d5c9d8b858fcac9211c7b081693d61ba" and "37c02dea3cfedf070b9cb2b745adfedb320afa76" have entirely different histories.
22a32841d5
...
37c02dea3c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
drastikbot
|
|
@ -74,13 +74,13 @@ def parser():
|
|||||||
" already exists.")
|
" already exists.")
|
||||||
conf_dir = str(path.expanduser().resolve())
|
conf_dir = str(path.expanduser().resolve())
|
||||||
else:
|
else:
|
||||||
path = Path('./drastikbot').expanduser()
|
path = Path('~/.drastikbot').expanduser()
|
||||||
if not path.is_dir():
|
if not path.is_dir():
|
||||||
try:
|
try:
|
||||||
path.mkdir(parents=True, exist_ok=False)
|
path.mkdir(parents=True, exist_ok=False)
|
||||||
except FileExistsError:
|
except FileExistsError:
|
||||||
sys.exit("[Error] Making configuration directory at"
|
sys.exit("[Error] Making configuration directory at"
|
||||||
" './drastikbot' failed. Another file with that name"
|
" '~/.drastikbot' failed. Another file with that name"
|
||||||
" already exists.")
|
" already exists.")
|
||||||
conf_dir = str(path)
|
conf_dir = str(path)
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ class Drastikbot():
|
|||||||
# statement below.
|
# statement below.
|
||||||
if multipart:
|
if multipart:
|
||||||
time.sleep(self.var.msg_delay)
|
time.sleep(self.var.msg_delay)
|
||||||
tr = m_len - 2 - len(' '.join(cmds).encode('utf-8')) - remainder - 1
|
tr = m_len - 2 - len(' '.join(cmds).encode('utf-8')) - remainder
|
||||||
t = text.encode('utf-8')[tr:]
|
t = text.encode('utf-8')[tr:]
|
||||||
self.send(cmds, t)
|
self.send(cmds, t)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user