r.ip #7

Open
DarkFeather wants to merge 10 commits from r.ip into main
Showing only changes of commit 2b85ffac49 - Show all commits

View File

@ -127,7 +127,7 @@ namespace AniNIX.TheRaven {
connection.Write(send);
return;
case "r.ip":
send.PrivMsg(ExecuteCommand.Run("curl -s 10.0.1.1:80 | grep \"WAN IP\" | cut -f 7 -d \">\" | cut -f 1 -d \"<\""),(incoming.target.Equals(theRaven.Nick))?incoming.user:incoming.target);
send.PrivMsg(ExecuteCommand.Run("curl -s $(ip r list | grep default | cut -f 3 -d \" \"):80 | grep \"WAN IP\" | cut -f 13 -d \">\" | cut -f 1 -d \"<\""),(incoming.target.Equals(theRaven.Nick))?incoming.user:incoming.target);
connection.Write(send);
return;
case "r.searches":