Guest User

Untitled

a guest
May 20th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. 20:51:42 <valonia-> Here u have an example!
  2. 20:51:51 <valonia-> alias ihl_showgames {
  3. 20:51:51 <valonia-> var %sql SELECT * FROM bot_games WHERE timestamp > 1000000000
  4. 20:51:51 <valonia-> var %res = $mysql_query(%track.db, %sql)
  5. 20:51:51 <valonia-> while ($mysql_fetch_row(%res, row)) {
  6. 20:51:52 <valonia-> var %t.games %t.games $chr(91) $+ $gcolor($chr(35) $+ $hget(row, id)) Duration: $left($timestamp($hget(row, timestamp)),-3) $+ mins $+ $chr(93)
  7. 20:51:52 <valonia-> }
  8. 20:51:55 <valonia-> mysql_free %res
  9. 20:51:59 <valonia-> if (!%t.games) describe $iif(!$chan,$nick,$chan) There are no games in progress!
  10. 20:52:01 <valonia-> else describe $iif(!$chan,$nick,$chan) Games in progress: %t.games
  11. 20:52:03 <valonia-> }
  12. 20:52:17 <valonia-> thats .games
  13. 20:52:18 <valonia-> :>
  14. 20:52:52 <valonia-> u see how easy it is!
Add Comment
Please, Sign In to add comment