Compare commits

...

2 Commits

3 changed files with 4 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
drastikbot

View File

@ -74,13 +74,13 @@ def parser():
" already exists.")
conf_dir = str(path.expanduser().resolve())
else:
path = Path('~/.drastikbot').expanduser()
path = Path('./drastikbot').expanduser()
if not path.is_dir():
try:
path.mkdir(parents=True, exist_ok=False)
except FileExistsError:
sys.exit("[Error] Making configuration directory at"
" '~/.drastikbot' failed. Another file with that name"
" './drastikbot' failed. Another file with that name"
" already exists.")
conf_dir = str(path)

View File

@ -145,7 +145,7 @@ class Drastikbot():
# statement below.
if multipart:
time.sleep(self.var.msg_delay)
tr = m_len - 2 - len(' '.join(cmds).encode('utf-8')) - remainder
tr = m_len - 2 - len(' '.join(cmds).encode('utf-8')) - remainder - 1
t = text.encode('utf-8')[tr:]
self.send(cmds, t)