A series of scripts utilized by the mod team of reddit's /r/mechmarket to monitor and award trade flair to its userbase.
Lovingly cloned from the source code for /r/hardwareswap's trade bot.
=========== List of TODOs:
Generalize the current config handler into something more standardized.*Don't want to rely on "magic strings" if at all possible.* Done -- seebot.config_generator
class and associatedbot.bot.CONFIG_DEFAULTS
dictionary.Generate method by which to more throughly verify a user's heatware before adding their flair.*May require direct crawling of the heatware site.* Done -- seebot.heatware_crawler
class.- Create handler for long-term storage of user information and associated data.
* Would rather not have to require the user set up an external database if at all possible.
* Considering
shelve
currently -- seebot.database_handler
class. - Finalize bot state logic.
* Any method added to the body of the
bot.bot
class that starts with the string_state
is automatically added into its logic loop currently. * Need to consider whether splitting bot logic into two groups, looped and scheduled, would be useful.- Scheduled logic would take crontab-esk input --
schedule
would be good for this. - Normal looped logic would continue to rely on the current
_state*
naming method.
- Scheduled logic would take crontab-esk input --
- Finalize interactive bot console.
* Would like to have the display split horizontally:
- Bottom portion could display running log of the bot's actions.
- Top portion would be used for comand input.
* Considering
cmd
currently, would require modification to get the whole "split terminal" thing working.
- Open-source the data!
* It'd be great if users could download the data the bot had collected on them.
* Could dump data to a linked Google Drive account, keep it there for ~24 hours before deleting it.
*
google-api-python-client
would be useful.