Пример #1
0
        private static TomeReply CreateReply(TableEntry entry)
        {
            var message = entry.Columns["reply"];
            var info = "Command #" + entry.Columns["id"] + " ( " + entry.Columns["trigger"] + " -> " + entry.Columns["reply"] + " )";

            var tomeReply = new TomeReply(message, info);
            return tomeReply;
        }
Пример #2
0
        private static TomeReply CreateReply(string tableName, TableEntry entry)
        {
            var message = entry.Columns["reply"];

            tableName = char.ToUpper(tableName[0]) + tableName.Substring(1);

            var info = tableName + " #" + entry.Columns["id"] + " ( " + entry.Columns["trigger"] + " -> " + entry.Columns["reply"] + " )";

            var tomeReply = new TomeReply(message, info);
            return tomeReply;
        }