Skip to content

Commit d151b34

Browse files
author
DUYN
committed
Refactor to framework setup
1 parent 74b6d99 commit d151b34

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+411
-1303
lines changed

bot/__init__.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +0,0 @@
1-
__version__ = 'develop'
2-
3-
if __version__ == 'develop':
4-
5-
try:
6-
import subprocess
7-
__version__ = 'develop-' + subprocess.check_output(
8-
['git', 'log', '--format="%h"', '-n 1'],
9-
stderr=subprocess.DEVNULL).decode("utf-8").rstrip().strip('"')
10-
except Exception:
11-
# git not available, ignore
12-
pass
13-
14-
15-
class DependencyException(Exception):
16-
"""
17-
Indicates that an assumed dependency is not met.
18-
This could happen when there is currently not enough money on the account.
19-
"""
20-
21-
22-
class OperationalException(Exception):
23-
"""
24-
Requires manual intervention and will usually stop the bot.
25-
This happens when an exchange returns an unexpected error during runtime
26-
or given configuration is invalid.
27-
"""
28-
29-
30-
class TemporaryError(Exception):
31-
"""
32-
Temporary network or exchange related error.
33-
This could happen when an exchange is congested, unavailable, or the user
34-
has networking problems. Usually resolves itself after a time.
35-
"""

bot/configuration/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

bot/configuration/arguments.py

Lines changed: 0 additions & 81 deletions
This file was deleted.

bot/configuration/bot_configuration.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

bot/configuration/configuration.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

bot/configuration/load_config.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

bot/configuration/resolvers.py

Lines changed: 0 additions & 66 deletions
This file was deleted.

bot/constants.py

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)