From charlesreid1

No edit summary
No edit summary
Line 1: Line 1:
==notes==
Categorizing bots:
Categorizing bots:
* currently, we have logging capacity
* currently, we have logging capacity
* what we need is a database module for logging
* what we need is a database module for logging
* logging functionality may need fixing...
* logging functionality may need fixing...
==code==


https://charlesreid1.com:3000/charlesreid1/apollospacejunk
https://charlesreid1.com:3000/charlesreid1/apollospacejunk
Line 28: Line 32:




==flags==
[[Category:2018]]
[[Category:February 2018]]
[[Category:Bots]]
[[Category:Bots]]

Revision as of 05:03, 3 February 2018

notes

Categorizing bots:

  • currently, we have logging capacity
  • what we need is a database module for logging
  • logging functionality may need fixing...

code

https://charlesreid1.com:3000/charlesreid1/apollospacejunk

https://charlesreid1.com:3000/charlesreid1/rainbow-mind-machine

https://charlesreid1.com:3000/charlesreid1/rainbow-mind-machine/src/master/rainbowmindmachine/Sheep.py#L348

    def _tweet(self,twit):
        """
        Private method.
        Publish a twit.
        """
        # call twitter api to tweet the twit

        try:
            # tweet:
            #stats = self.t.statuses.update(status=twit)
            self.t.statuses.update(status=twit)

            msg = self.timestamp_message(">>> Tweet was successful: %s"%(twit))
            logging.info(msg)


flags