forked from Morphux/IRC-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5557855
commit e42d8b7
Showing
8 changed files
with
64 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"host": "irc.freenode.net", | ||
"chan": "#ne02ptzero", | ||
"chan": "#morphux", | ||
"port": "6667", | ||
"symbol": "!", | ||
"nick": "Bot2fab4u", | ||
"password": "", | ||
"nick": "CL4P_TP", | ||
"password": "morphuxftw", | ||
"debug": 1, | ||
"identify": 0, | ||
"identify": 1, | ||
"welcomeMessage": "o/", | ||
"errorMessage": "Duknow this command !" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Base Module | ||
# By: Louis <louis@ne02ptzero> | ||
|
||
class Base: | ||
|
||
def command(self): | ||
self.config = { | ||
"command": { | ||
"ping": { | ||
"function": self.ping, | ||
"usage": "ping", | ||
"help": "Make a ping to the bot" | ||
} | ||
}, | ||
"onJoin": { | ||
"join": self.join | ||
} | ||
} | ||
return self.config | ||
|
||
def ping(self, Morphux, infos): | ||
Morphux.sendMessage("Pong !", infos['nick']) | ||
|
||
def join(self, Morphux, user): | ||
Morphux.sendMessage("Hey, howr u doin :) ?", user) |
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Moderation Module | ||
# By: Louis <[email protected]> | ||
|
||
class Moderate: | ||
def command(self): | ||
self.config = { | ||
"command": { | ||
"kick": { | ||
"function": self.kick, | ||
"usage": "kick user", | ||
"help": "GET REKT" | ||
} | ||
} | ||
} | ||
return self.config | ||
|
||
def kick(self, Morphux, infos): | ||
if (Morphux.isAdmin(infos['nick'])): | ||
if (len(infos['args'])): | ||
Morphux.kick(infos['args'][0], "GET REKT") | ||
else: | ||
Morphux.sendMessage("You're not admin !", infos['nick']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters