Ngoto

No description is available yet
Ngoto logo

Ngoto: A Python Tool for Event Handling and Task Management


Warning

This tool is solely for educational purposes. The developer will not be responsible for any misuse of the tool.


Overview

Ngoto is a Python tool designed for event handling and task management. It provides a simple and intuitive way to create plugins, commands, and tasks that can be executed and managed from a central location.


Features

  • Plugins: Create custom plugins with specific functionality and attributes.
  • Commands: Define command-line interfaces with customizable aliases and descriptions.
  • Tasks: Schedule tasks with adjustable delays and IDs for better organization.
  • Event Handling: Handle events triggered by plugins, commands, or tasks.

Example Usage

To get started, install Ngoto using pip or pip3: pip install ngoto

Create a basic example of each event type and start the tool:

from ngoto import plugin, command, task, Ngoto

class Basic():
    @plugin(name='Tester', desc='Tester Plugin', folder='Random')
    def tester(self, logger):
        logger.info(f'Plugin ran', program='Test')

    @command(name='test', aliases=['t'], desc='Tests command')
    def test(self, logger, options):
        logger.info(f'Command ran', program='Test')

    @task(name='TaskTest', desc="Tests task creation", delay=3, id='test')
    def testing(self):
        self.logger.info(f'Task logger test ran', program='Test')
        return 'Task ran'

ngoto = Ngoto()
ngoto.load_cogs([Basic()])
ngoto.start()

Development

To contribute to Ngoto or modify the source code:

  1. Clone the repository: git clone https://github.com/HarryLudemann/Ngoto
  2. Install required modules: pip install -r requirements.txt
  3. Run the script: python main.py




> Visit Ngoto Website <