Skip to content

A curious python bot traveling through X space on a RaspberryPi

License

Notifications You must be signed in to change notification settings

Pymetheus/XBot_Pimetheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pimetheus - The curious python bot in X space

This is Pimetheus, a bot written in the python programming language. He is navigating through the X space, traveling on a RaspberryPi Zero. Shaped by his configuration, he is automated to put into circulation messages defined by his instructions.

Pimetheus

Table of Contents

Instructions

Pimetheus instructions ain't rocket science. Every morning, he's starting his journey through X space. Powered by the Google Search Engine, he is exploring space terms and retrieving relevant Wikipedia results. On his adventure he's not only tickling his audience with space jokes, but also illuminating them with famous space quotes, while constantly controlling the CPU temperature of the RaspberryPi and his travel time.

Requirements

  • Python 3.x
  • RaspberryPi
  • X Developer account
  • Google Developer account

Getting Started

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/Pymetheus/XBot_Pimetheus
  2. Change into the project directory:

    cd XBot_Pimetheus
  3. Update the API keys in the config.ini

    cd XBot_Pimetheus\.config\config.ini

Source Code

The source code of Pimetheus is located in the src directory, organized into separate modules.

Discover in RaspberryPiActions.py the functions dedicated to fetching CPU temperature, system uptime, and renewing the dhclient. The SpaceKeywordList.py houses three distinct lists: space terms, jokes, and quotes, for the cosmic expedition. Navigate through GoogleCustomSearchEngine.py to exploit the power of custom search queries, while the APIClient class in TwitterAPIClient.py empowers one to unleash messages on X. BotActions.py is where the magic happens, where the RaspberryPi bot comes to life and his actions and interactions are defined.

Lastly, main.py serves as mission control, orchestrating the entire operation, utilizing inputs from the SpaceKeywordList to execute specified bot actions.

Blackbox

The Blackbox.py, leveraging the logging module, serves as a critical component for Pimetheus safety. It is designed to record and store data related to the operation of the bot during his journey through space.

The Blackbox captures a wide range of flight parameters such as initializing methods, returning variable values, capturing exceptions, and various other pieces of information. This data is essential for accident investigation, performance analysis, and understanding the sequence of events leading up to an incident or accident. All gathered information is saved live in blackbox.log.

Contributing

Contributions and co-pilots to this project are welcome! If you would like to contribute, please open an issue to discuss potential changes or submit a pull request. For more details please visit the contributing page.

License

This project is licensed under the MIT License. You are free to use, modify, and distribute this code as permitted by the license.

About

A curious python bot traveling through X space on a RaspberryPi

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages