Guest User

Untitled

a guest
Mar 15th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.29 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. ### Template formatting ###
  4. #
  5. # $var_name -- variables
  6. # #B -- toggle bold
  7. # #U -- toggle underline
  8. # #O -- origional
  9. # #R -- reversed
  10. # #C03,43 -- set colour codes
  11.  
  12. class topic:
  13. base = "#C2#BTF2Mix 1v1 to 12v12#B#O #C14|#O /ns ajoin add #tf2mix"
  14. seperator = " #C14|#O "
  15. default = "No games are currently running"
  16. game_started = "#C2[game.started] #C5#B$owner#B #C7will be admining the map #C05#B$map#B #C7on #C5#B$server#O"
  17. game_in_progress = "#C2[game.in.progress] #C7on #C5#B$server#B #C7(#C5$map#C7)#O"
  18. next_game = "#C7Next game: #C05$next_time #C7(#C14$next_map#C7)"
  19.  
  20. class channel:
  21. join = ["Welcome to #B#tf2mix#B! Type !help for available commands. Enjoy your stay.",
  22. #"TF2Mix is ... .. .... . .... .. . ..... . .... . .... .. ..... .. . .. .. " + \
  23. #"Games are played on any map type, from arena to payload, and CTF to CP.",
  24. "Please note: This bot is still under development and is not yet complete."]
  25.  
  26. class command_syntax:
  27. _base = "Invalid syntax! "
  28. start = _base + 'Usage: "!start <mode> <map name>"'
  29. setserver = _base + 'Usage: "!setserver <server number>"'
  30. setmap = _base + 'Usage: "!setmap <map name>"'
  31. join = _base + 'Usage: "!join [<team/class>]"'
  32. changeclass = _base + 'Usage: "!changeclass <class name>"'
  33. schedulegame= _base + 'Usage: "!schedulegame <time/date> <mode> [(map)]"'
  34. debug = "Please note: This is a debug command. Do #Unot#U use this command unless you know exactly how!"
  35.  
  36. class server:
  37. set = "Successfully set server to [$server]."
  38. already_set = "Server is already set to that."
  39. invalid_number = "Invalid server number!"
  40. list = "Server list: $server_list"
  41. unknown = ['$owner: I cannot find a method to configure the set server. '
  42. 'Please either change the server with "!setserver <server number>" or manually configure the map and password.']
  43. none_available = ['$owner: I cannot find an available server to designate. '
  44. 'Please use "!setserver <server number>" to manually set the server.']
  45.  
  46. class player:
  47. already_added = "You are already taking part in the game."
  48. not_taking_part = "You are not taking part in the game."
  49. added = "You have been added to the pickup on Team $team."
  50. added_highlander= "You have been added to the pickup as a [$player_class]."
  51. removed = "You have been removed from the game."
  52. changed_team = "You have changed to Team $team."
  53. changed_class = "You have changed class to [$player_class]."
  54.  
  55. class game:
  56. started = "A Mix game has been started, type !add [<team/class>] to join! The map is $map."
  57. not_started = "Sorry, there is currently no game started."
  58. not_started_user = not_started + " Ask an admin to start a game."
  59. cancelled = "A Mix pickup game has been cancelled."
  60. full = "The game is full! Game will close in $secs seconds."
  61. in_progress = "Your game is starting in 60 seconds! #C07Server: #C05#B$server#B #C07Password: #C05#B$password#B#O. Enjoy!"
  62. sent_password = "Server details and password have been sent to all players taking part in the game."
  63. is_in_progress = "You cannot use that command while the current game is in progress."
  64. already_started = "There is already a game started."
  65. available_classes = "Available classes: $classes"
  66. available_classes_none = "There are no available classes at this time."
  67. team_invalid = "Invalid team! There is no team name matching [$team]."
  68. team_full = "Sorry, game team [$team] is already full."
  69. class_full = "Sorry, game class [$game_class] is already full."
  70. class_invalid = "Invalid class! There is no class name matching [$classname]."
  71. map_set = "Map successfully set to [$map]."
  72. map_doesnt_exist = 'There is no map matching [$map]. For available maps check "!maplist"'
  73. scheduled = "A game has been scheduled for [$time]."
  74. scheduled_game = "#C4A $mode Mix game is scheduled to begin now."
  75. scheduled_game_overlap = "#C4A Mix game on map [$map] was scheduled to begin now, but there is already a game started."
  76. teams = "[#C14$c/$max_players#O] #C07Team A: #C14$a #O|| #C07Team B: #C14$b"
  77. teams_seperator = " #O, #C14"
  78. highlander_teams = "[#C14$c/18#O] #C07Sniper: #C14$? #O, #C14$? #O|| #C07Scout: #C14$? #O, #C14$? #O|| " + \
  79. "#C07Demoman: #C14$? #O, #C14$? #O|| #C07Soldier: #C14$? #O, #C14$? #O|| " + \
  80. "#C07Pyro: #C14$? #O, #C14$? #O|| #C07Spy: #C14$? #O, #C14$? #O|| " + \
  81. "#C07Medic: #C14$? #O, #C14$? #O|| #C07Heavy: #C14$? #O, #C14$? #O|| #C07Engineer: #C14$? #O, #C14$?"
  82.  
  83. class general:
  84. next_game_none = "There are no games scheduled at the moment."
  85. unable_to_parse = "Unable to parse value [$value]."
  86. command_timeout = "Please wait a few seconds before using this command again."
  87. unknown_command = "'$command' is an unknown command. For the list of commands use: !help"
  88. help = ["Please note: Bot is still under development, functionality is not yet complete.",
  89. "Commands: !add <class>, !remove, !changeclass, !teams, !maplist, !classes, !admins"]
  90. map_list = "Available maps: $map_list"
  91. not_admin = "Only #Badmins#B may use that command."
Add Comment
Please, Sign In to add comment