The basic answer is you'd create a config file, put it in the proper place, and then "exec" it when you want to use it.
First, you have to create the file. Any text editor will do, but if you're just using Notepad, I'd suggest upgrading to something like Notepad++.
Enter whatever commands you want to execute (in this case, the block of commands you've already come up with) and then save the file in:
...\steamapps\common\Team Fortress 2\tf\cfg
Once this is done, you can execute the config file by opening the console and typing:
exec myconfigname.cfg
This will run whatever commands are in the file.
Since you can bind commands to keyboard keys, you can extend this to "exec" commands by pressing keys, for instance:
bind "KP_5" "exec myconfigname.cfg"
would make the 5 key on your keypad execute the config file "myconfigname.cfg". Since config files can rebind keys, you can get pretty fancy with turning things on and off - bind a key in each config file that cycles through your configs, for instance.
There's a lot of power in the console (and, by extension, config files) - there's a good tutorial on the Steam forums here which I referenced in making this answer.
Map Voting might be a good start.
Personally I hate when servers have bots (and usually instantly blacklist them) but if your server looks like it has people in it and its a map they enjoy then they will join, so bots might help you, im not sure how you set it up but i have played on servers that have bots that dont appear as bots and the only reason i realised they were was their playstyle.
Best Answer
In order for sprays to work properly, you must:
If you're doing this right, you should hear a "spraycan" sound effect. Some surfaces don't take sprays properly, although a flat floor or wall is usually safe. You also have to be somewhat close to the surface in order to spray - too far away and you won't be able to. There's also a cooldown between sprays, so you can't spam the spray button.