1: <?php
2:
3: namespace Budabot\User\Modules;
4:
5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20:
21: class DingController {
22:
23: 24: 25: 26:
27: public $moduleName;
28:
29:
30: public $text;
31:
32:
33: public $util;
34:
35: 36: 37: 38:
39: public function ding1Command($message, $channel, $sender, $sendto, $args) {
40: $dingText = array(
41: "Yeah yeah gratz, I would give you a better response but you didn't say what level you dinged.",
42: "Hmmm, I really want to know what level you dinged, but gratz anyways nub.",
43: "When are you people going to start using me right! Gratz for your level though.",
44: "Gratz! But what are we looking at? I need a level next time.");
45:
46: $sendto->reply($this->util->randomArrayValue($dingText));
47: }
48:
49: 50: 51: 52:
53: public function ding2Command($message, $channel, $sender, $sendto, $args) {
54: $msg = "Ditch, Bitch!";
55: $sendto->reply($msg);
56: }
57:
58: 59: 60: 61: 62:
63: public function ding3Command($message, $channel, $sender, $sendto, $args) {
64: $level = $args[1];
65: if ($level <= 0) {
66: $lvl = (int)round(220 - $level);
67: $dingText = array(
68: "Reclaim sure is doing a number on you if you're going backwards...",
69: "That sounds like a problem... so how are your skills looking?",
70: "Wtb negative exp kite teams!",
71: "That leaves you with... $lvl more levels until 220, I don't see the problem?",
72: "How the hell did you get to $level?");
73: } else if ($level == 1) {
74: $dingText = array(
75: "You didn't even start yet...",
76: "Did you somehow start from level 0?",
77: "Dinged from 1 to 1? Congratz");
78: } else if ($level == 100) {
79: $dingText = array(
80: "Congratz! <red>Level 100<end> - ".$sender." you rock!\n",
81: "Congratulations! Time to twink up for T.I.M!",
82: "Gratz, you're half way to 200. More missions, MORE!",
83: "Woot! Congrats, don't forget to put on your 1k token board.");
84: } else if ($level == 150) {
85: $dingText = array(
86: "S10 time!!!",
87: "Time to ungimp yourself! Horray!. Congrats =)",
88: "What starts with A, and ends with Z? <green>ALIUMZ!<end>",
89: "Wow, is it that time already? TL 5 really? You sure are moving along! Gratz");
90: } else if ($level == 180) {
91: $dingText = array(
92: "Congratz! Now go kill some <green>aliumz<end> at S13/28/35!!",
93: "Only 20 more froob levels to go! HOORAH!",
94: "Yay, only 10 more levels until TL 6! Way to go!");
95: } else if ($level == 190) {
96: $dingText = array(
97: "Wow holy shiznits! You're TL 6 already? Congrats!",
98: "Just a few more steps and you're there buddy, keep it up!",
99: "Almost party time! just a bit more to go ".$sender.". We'll be sure to bring you a cookie!");
100: } else if ($level == 200) {
101: $dingText = array(
102: "Congratz! The big Two Zero Zero!!! Party at ".$sender."'s place",
103: "Best of the best in froob terms, congratulations!",
104: "What a day indeed. Finally done with froob levels. Way to go!");
105: } else if ($level > 200 && $level < 220) {
106: $dingText = array(
107: "Congratz! Just a few more levels to go!",
108: "Enough with the dingin you are making the fr00bs feel bad!",
109: "Come on save some dings for the rest!");
110: } else if ($level == 220) {
111: $dingText = array(
112: "Congratz! You have reached the end of the line! No more fun for you :P",
113: "Holy shit, you finally made it! What an accomplishment... Congratulations ".$sender.", for reaching a level reserved for the greatest!",
114: "I'm going to miss you a great deal, because after this, we no longer can be together ".$sender.". We must part so you can continue getting your research and AI levels done! Farewell!",
115: "How was the inferno grind? I'm glad to see you made it through, and congratulations for finally getting the level you well deserved!",
116: "Our congratulations, to our newest level 220 member, ".$sender.", for his dedication. We present him with his new honorary rank, Chuck Norris!");
117: } else if ($level > 220) {
118: $dingText = array(
119: "Umm...no.",
120: "You must be high, because that number is too high...",
121: "Ha, ha... ha, yeah... no...",
122: "You must be a GM or one hell of an exploiter, that number it too high!",
123: "Yeah, and I'm Chuck Norris...",
124: "Not now, not later, not ever... find a more reasonable level!");
125: } else {
126: $lvl = (int)round(220 - $level);
127: $dingText = array(
128: "Ding ding ding... now ding some more!",
129: "Keep em coming!",
130: "Don't stop now, you're getting there!",
131: "Come on, COME ON! Only $lvl more levels to go until 220!");
132: }
133:
134: $sendto->reply($this->util->randomArrayValue($dingText));
135: }
136: }
137: