aboutsummaryrefslogtreecommitdiffstats
path: root/misc_classes.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten@yahoo.co.uk>2019-04-15 19:48:03 +0100
committerjwansek <eddie.atten@yahoo.co.uk>2019-04-15 19:48:03 +0100
commita81f4c2be5fd69891a3e635c444ce762f055f597 (patch)
treea8f84654f599d9c3aff9dd3b003721ce1b981d04 /misc_classes.py
parent72ea4b533032bfcb439b6ca017e087420531bd3d (diff)
downloadSmallYTChannelBot-a81f4c2be5fd69891a3e635c444ce762f055f597.tar.gz
SmallYTChannelBot-a81f4c2be5fd69891a3e635c444ce762f055f597.zip
cleared up a bit and improved loggig
Diffstat (limited to 'misc_classes.py')
-rw-r--r--misc_classes.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc_classes.py b/misc_classes.py
new file mode 100644
index 0000000..6d310b3
--- /dev/null
+++ b/misc_classes.py
@@ -0,0 +1,12 @@
+import os
+
+class SimpleLogger:
+ def __init__(self):
+ if not os.path.exists("actions.log"):
+ file = open("actions.log", "w")
+ file.close()
+
+ def log(self, message):
+ file = open("actions.log", "a")
+ file.write("%s\n" % message)
+ file.close() \ No newline at end of file