04-05-2014, 03:07 AM
As some of you know, I specialize in bot creation for Python. What a let down, I know, especially for @"Monotonous" , however, my abilities aren't this thread's topic.
I call this method "Spining". Basically you add a "spine" or back bone to the bots so you can use defined commands from another module. This helps cleaning up bots' base file quite a bit.
Example of usage:
Of course, you can add anything you want, this is just made to help make bots cleaner and more efficient.
Spine.py Exmaple:
But why is this spining shit thingy important to bots? Well, basically, by importing our module that stores the commands that we define, we can butt fuck the bot files and shorten them a lot. I'll give you a quick example, a bot that I've written is more than 1000 lines long. I applied the spining method, cleaned it up quite a bit, and the end result was more then half of what it was.
The trick is knowing how to use imports with Python. I'll go more into depth in this topic in another thread, this is just a way to shorten, and clean your bot files.
I call this method "Spining". Basically you add a "spine" or back bone to the bots so you can use defined commands from another module. This helps cleaning up bots' base file quite a bit.
Example of usage:
Hidden Content
Of course, you can add anything you want, this is just made to help make bots cleaner and more efficient.
Spine.py Exmaple:
Hidden Content
But why is this spining shit thingy important to bots? Well, basically, by importing our module that stores the commands that we define, we can butt fuck the bot files and shorten them a lot. I'll give you a quick example, a bot that I've written is more than 1000 lines long. I applied the spining method, cleaned it up quite a bit, and the end result was more then half of what it was.
The trick is knowing how to use imports with Python. I'll go more into depth in this topic in another thread, this is just a way to shorten, and clean your bot files.