SHARE
TWEET

Untitled

a guest Jul 18th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ## BuddyBot
  3.  
  4. Based off Nortxort's Tinychat Bot and Pinylib.
  5.  
  6. ### Updates
  7.  
  8. ### 2.4.5
  9. - Spam protection updates - bugs fixed, tested.
  10.  
  11. 2.4
  12. - !camban - ban nicks from camming up
  13. - Fixed spam protection, holds against spam bots now
  14. - fixed other bugs related to global vars talking between modules
  15. - added welcome, register as modules of their own
  16.  
  17.  
  18. 2.3.2
  19. - !verobose - to enable or disable the bot from showing respones for cmds in chat
  20. - !allowcam - No one is allowed to cam up
  21. - !acc - New account manager
  22.     - !acc camban account reason for cambans
  23. - !tokes/!cheers mins - Countdown, !tokes or !cheers to join in
  24. - !vote - !voteban cam/ban account, !vote for yes if there is 5 votes.
  25.     - cam will close cam
  26.     - ban will ban the user
  27.  
  28. - !vip - Allow only users with accounts in bot to join the room
  29. - Custom Users welcome messages, !acc add account verified Welcome Message
  30.  
  31. 2.2.9
  32. - Multiple Room Support
  33.     - config.py ROOMS=['room1','room2','etc']
  34.  
  35. - Spam Protection updates based on testing
  36. - Bot reconnect to TinyChat after disconnect
  37. - Spam: Kick/ban flood pool for lockdown mode so bot doesn't flood out
  38.  
  39.  
  40. ### Features
  41.  
  42. - Spam Protection
  43.     - Enable and disable Spam protection
  44.     -       !spam
  45.     - On Join flooding
  46.     - Spam Repeat text
  47.     - Spam Score System
  48.     - Random nick Check
  49.     - Lockdown with password or no guest mode (Owner mode)
  50.  
  51. - User System
  52.     - Verified Accounts can control youtube and auto-cam'ed by bot
  53.     - !acc account level welcomemessage/reason
  54.     -       !acc add odsum mod/admin/verified my welcome greeting
  55.     -       !acc del odsum
  56.     -       !acc camban odsum smokes on cam
  57.     -       !acc ban odsum reason of ban
  58.  
  59.     #### Account levels
  60.     9 - Banned account<br />
  61.     8 - Camban<br />
  62.     7 - guest<br />
  63.     6 - has account not verified<br />
  64.     5 - verified/whitelist user<br />
  65.     4 - Chatmod<br />
  66.     3 - Regular Mod<br />
  67.     2 - Chatadmin<br />
  68.  
  69. - Dj Mode
  70.     - Limits all chatmods and Verified Accounts from using youtube unless a dj is defined.
  71.     - !djmode and !dj <nick>
  72.  
  73. ## Road Map
  74.  
  75. 3.0
  76. - Sqlite for database
  77. - Web interface to Manage Accounts, bot settings
  78.  
  79. ## Commands
  80.  
  81.     Verified Accounts:
  82.     Media Cmds: !yt, !close, !seek, !reset, !spl, !del, !skip, !yts, !rpl, !pause, !play, !pyst
  83.  
  84.     Chatmods and !mod tmp users:
  85.     Mod Cmds: !clr, !camban, !kick, !ban, !cam, !close, !banw <badword>,!rmw <badword>, !badn <nick>, !acc, !+tmod, !-tmod, !verobose, !allowcam, !spam, !vote
  86.  
  87.     Mods and Admins:
  88.     Admin Cmds: !lockdown (noguests), !lockup(password enabled), !noguest, !p2t, !+mod, !-mod
  89.  
  90.     Other cmds: !urb, !8ball, !flip, !roll, !whoplayed, !now, !status, !chuck, !wea, !cheers, !tokes
  91.  
  92.     Account Management:
  93.         !acc add odsum mod/admin/verified my welcome greeting
  94.         !acc del odsum
  95.         !acc camban odsum smokes on cam
  96.         !acc ban odsum reason of ban
  97.  
  98. ## Pinylib-RTC
  99.  
  100. WebRTC module for tinychat chat rooms.
  101.  
  102. This is the WebRTC version of pinylib. The structure and the coding style is the same as the original pinylib. Since tinychat is still in beta stage, this version should also be seen as a sort of beta version.
  103.  
  104. It was based on the [POC](https://github.com/notnola/TcRTC) by [notnola](https://github.com/notnola)
  105.  
  106.  
  107. ## Setting up
  108.  
  109. Examples shown here, assumes you are using windows.
  110.  
  111. pinylib-rtc was developed using [python 2.7.10](https://www.python.org/downloads/windows/ "python for windows") so this is the recomended python interpreter. Later versions of python should work to, aslong as they are from the 2.7 family. I have not tested it with python 3, but with a few changes to client.py i think it would be possible.
  112.  
  113. ### Requirements
  114.  
  115. pinylib-rtc requires 4 libraries that are not part of the standard python library, these being:
  116.  
  117. * [websocket-client](https://github.com/websocket-client/websocket-client)
  118. * [requests](https://github.com/kennethreitz/requests "requests")
  119. * [colorama](https://github.com/tartley/colorama "Colorama")
  120. * [BeautifulSoup4](https://www.crummy.com/software/BeautifulSoup/bs4/doc/ "beautifulsoup4")
  121.  
  122. These can all be installed form a command prompt with pip.
  123.  
  124. `pip install websocket-client requests colorama beautifulsoup4 simplejson`
  125.  
  126.  
  127. ## Run the client
  128.  
  129. Run the client by typing `python path\to\bot.py` in a command prompt.
  130.  
  131.  
  132. ## Authors
  133. * [odsum](https://github.com/odsum)
  134. * [nortxort](https://github.com/nortxort)
  135.  
  136.  
  137. ## License
  138.  
  139. The MIT License (MIT)
  140.  
  141. Copyright (c) 2018 Notnola
  142. Copyright (c) 2018 Nortxort
  143. Copyright (c) 2018 Odsum
  144.  
  145. Permission is hereby granted, free of charge, to any person obtaining a copy of this software
  146. and associated documentation files (the "Software"), to deal in the Software without restriction,
  147. including without limitation the rights to use, copy, modify, merge, publish, distribute,
  148. sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
  149. is furnished to do so, subject to the following conditions:
  150.  
  151. The above copyright notice and this permission notice
  152. shall be included in all copies or substantial portions of the Software.
  153.  
  154. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  155. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  156. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  157. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  158. DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  159. ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top