static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { string query = rmsg.Remove(0, 6); ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); string hash = ObsidFunc.sha1calc(query); Console.WriteLine("PRIVMSG " + channel + " :" + hash); } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { string query = rmsg.Remove(0, 6); ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); string hash = ObsidFunc.sha1calc(query); Console.WriteLine("PRIVMSG " + channel + " :" + hash); } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
public void generatesha1message() { string query = rmsg.Remove(0, 6); Functions ObsidFunc = new Functions(); string hash = ObsidFunc.sha1calc(query); send("PRIVMSG " + channel + " :" + hash); }