Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [6:53 PM, 3/21/2020] Crissy: are you busy
- [6:54 PM, 3/21/2020] slink: A bit
- [6:54 PM, 3/21/2020] slink: Once tv show done with brother I'll let you know
- [6:54 PM, 3/21/2020] Crissy: 😢
- [7:06 PM, 3/21/2020] slink: What's going on
- [7:06 PM, 3/21/2020] Crissy: i just need some guidance
- [8:05 PM, 3/21/2020] slink: What's up
- [8:09 PM, 3/21/2020] Crissy: just a second
- [8:10 PM, 3/21/2020] Crissy: sam is giving me a bunch of usernames he no longer wants
- [8:10 PM, 3/21/2020] slink: Ahh
- [8:12 PM, 3/21/2020] Crissy: but i was trying to compile a python bot
- [8:13 PM, 3/21/2020] Crissy: i've already done the fail over ip's
- [8:13 PM, 3/21/2020] Crissy: and my ipv6 ip is working
- [8:16 PM, 3/21/2020] slink: Oh
- [8:19 PM, 3/21/2020] Crissy: so i tried to install pip
- [8:20 PM, 3/21/2020] slink: apt install python-pip python3-pip
- [8:20 PM, 3/21/2020] Crissy: yes that's the one i did
- [8:21 PM, 3/21/2020] slink: What are you stuck on?
- [8:22 PM, 3/21/2020] Crissy: first the pip
- [8:22 PM, 3/21/2020] Crissy: then i get distracted
- [8:24 PM, 3/21/2020] Crissy: okay this next part i'm not sure about
- [8:24 PM, 3/21/2020] Crissy: adding /home
- [8:24 PM, 3/21/2020] Crissy: You might need to add $HOME/.local/bin to your PATH.:
- echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.$(echo $SHELL|cut -d/ -f3)rc
- source ~/.$(echo $SHELL|cut -d/ -f3)rc
- [8:26 PM, 3/21/2020] slink: That makes it so that anything in .local/bin in your home path is executable on the command line without an absolute path
- [8:26 PM, 3/21/2020] Crissy: so do tihs: echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.$(echo $SHELL|cut -d/ -f3)rc
- source ~/.$(echo $SHELL|cut -d/ -f3)rc
- [8:26 PM, 3/21/2020] slink: the stuff in $PATH contains a list of directories separated by a colon : that your shell will search for commands to run
- [8:27 PM, 3/21/2020] slink: It should work I think
- [8:32 PM, 3/21/2020] Crissy: its not working for me
- [8:32 PM, 3/21/2020] Crissy: hmm
- [8:34 PM, 3/21/2020] Crissy: should be one line
- [8:34 PM, 3/21/2020] Crissy: or two
- [8:34 PM, 3/21/2020] Crissy: two lines not workng for me
- [8:34 PM, 3/21/2020] slink: Two
- [8:36 PM, 3/21/2020] Crissy: how do i know if it took?
- [8:37 PM, 3/21/2020] slink: echo $PATH |grep .local/bin
- [8:38 PM, 3/21/2020] Crissy: oops
- [8:38 PM, 3/21/2020] Crissy: /root/.local/bin:/root/.local/bin:/root/.local/bin:/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
- [8:41 PM, 3/21/2020] slink: It looks like it worked to me
- [8:41 PM, 3/21/2020] slink: It's not making you run the bot as root is it?
- [8:45 PM, 3/21/2020] Crissy: not that i can tell
- [8:48 PM, 3/21/2020] Crissy: now i'm on this part
- [8:48 PM, 3/21/2020] Crissy: Configuration
- We are now ready to configure Supybot. Supybot creates quite a few auxiliary files/directories to store its runtime data. It is thus recommended to create an empty directory from which you’ll be running supybot, to keep all the data in a nice dedicated location. For example, you may create a ‘runbot’ directory inside your home directory.
- Now you can cd to your ‘runbot’ directory, and from within it run supybot-wizard, which will walk you through a series of questions to generate the bot config file.
- [8:49 PM, 3/21/2020] Crissy: One thing to make sure to do in the wizard, to make your life easier down the line, is to select y for the Would you like to add an owner user for your bot? question, and actually create the owner user. Remember that password, so that you can later ‘’identify’’ with the bot on IRC and administer it.
- Once you generate the config file, which will be named yourbotnick.conf (where “yourbotnick” is the nick you have chosen for your bot in the wizard), it will be placed in your ‘runbot’ directory. (As long as you leave the default answer to the ‘’Where would you like to create these directories?’’ question.)
- Now to start the bot, run, still from within the ‘runbot’ directory:
- [8:50 PM, 3/21/2020] slink: Do what it says
- [8:51 PM, 3/21/2020] Crissy: so do i need to do cd /home
- [8:51 PM, 3/21/2020] Crissy: then do
- [8:51 PM, 3/21/2020] slink: You should not be doing this as root btw
- [8:51 PM, 3/21/2020] slink: These directions
- [8:51 PM, 3/21/2020] Crissy: supybot yourbotnick.conf
- [8:51 PM, 3/21/2020] slink: Anyhow, you would do:
- mkdir botname
- cd botname
- supybot-wizard
- [8:51 PM, 3/21/2020] slink: If you run the bot as root, it'll run everything under it as root, giving the bot access to everything
- [8:53 PM, 3/21/2020] Crissy: brb
- [9:02 PM, 3/21/2020] Crissy: Had to take London outside
- [9:15 PM, 3/21/2020] Crissy: so
- [9:15 PM, 3/21/2020] Crissy: i need to do mkdir botname
- [9:15 PM, 3/21/2020] Crissy: let me look at the usernames that sam gave me
- [9:18 PM, 3/21/2020] Crissy: freebase, coma, camilla, indeed, thorne, isaBela , cLara, Alicia, line, fluffy, FunkyGirL, claire, muah, lia, or book
- [9:18 PM, 3/21/2020] Crissy: which one/
- [9:18 PM, 3/21/2020] slink: That's up to you
- [9:19 PM, 3/21/2020] slink: If you don't know which one, create a new account for it and su - newaccount
- [9:21 PM, 3/21/2020] Crissy: okay
- [9:23 PM, 3/21/2020] Crissy: how do i create a password for bot?
- [9:23 PM, 3/21/2020] Crissy: i did mkdir fluffy
- [9:23 PM, 3/21/2020] slink: The system account or the actual bot?
- [9:24 PM, 3/21/2020] Crissy: then i did cd fluffy
- [9:24 PM, 3/21/2020] slink: So you're in /home/<someuser>/fluffy now?
- [9:24 PM, 3/21/2020] Crissy: root@vps270071:/home# cd ..
- root@vps270071:/# mkdir fluffy
- root@vps270071:/# cd fluffy
- root@vps270071:/fluffy# supybot-wizard
- Running as root is not supported by default (see --allow-root).
- root@vps270071:/fluffy#
- [9:24 PM, 3/21/2020] slink: No
- [9:25 PM, 3/21/2020] slink: rm -r /fluffy
- useradd fluffy --shell=/bin/bash -m
- echo fluffy:ChangeThisToSomething | chpasswd
- su - fluffy
- mkdir ircbot
- cd ircbot
- supybot-wizard
- [9:25 PM, 3/21/2020] Crissy: someuser?
- [9:27 PM, 3/21/2020] Crissy: umm
- [9:28 PM, 3/21/2020] slink: Those are the commands you want to run, in order, one at a time
- [9:29 PM, 3/21/2020] Crissy: what screen am i supposed to be on for this
- [9:29 PM, 3/21/2020] Crissy: root@vps270071:/#
- [9:29 PM, 3/21/2020] Crissy: this one
- [9:31 PM, 3/21/2020] slink: Yes.
- [9:31 PM, 3/21/2020] slink: Be very careful typing that rm command
- [9:32 PM, 3/21/2020] Crissy: no such file of directory
- [9:34 PM, 3/21/2020] slink: On which command?
- [9:34 PM, 3/21/2020] Crissy: first one
- [9:34 PM, 3/21/2020] slink: Ignore that and move on
- [9:35 PM, 3/21/2020] Crissy: echo fluffy:ChangeThisToSomething | chpasswd
- su - fluffy
- mkdir ircbot
- cd ircbot
- supybot-wizard
- [9:36 PM, 3/21/2020] slink: Did they all work?
- [9:37 PM, 3/21/2020] Crissy: This is a wizard to help you start running supybot. What it will
- do is create the necessary config files based on the options you
- select here. So hold on tight and be ready to be interrogated :)
- First of all, we can bold the questions you're asked so you can
- easily distinguish the mostly useless blather (like this) from
- the questions that you actually have to answer.
- Would you like to try this bolding? [y/n] (default: y)
- [9:39 PM, 3/21/2020] Crissy: Your bot needs to create some directories in order to store the
- various log, config, and data files.
- Where would you like to create these directories? (default:
- [9:39 PM, 3/21/2020] Crissy: how do i answer this question
- [9:43 PM, 3/21/2020] slink: Answer them how you see fit. I would assume whatever the default option is would be good
- [9:43 PM, 3/21/2020] slink: Is what I would edo
- [9:43 PM, 3/21/2020] slink: do*
- [9:51 PM, 3/21/2020] Crissy: What plugin would you like to look at? [Aka/Alias/Anonymous/
- AutoMode/BadWords/ChannelLogger/ChannelStats/Conditional/Ctcp/
- Debug/Dict/Dunno/Factoids/Filter/Format/GPG/Games/Google/
- Hashes/Herald/Internet/Karma/Lart/Later/Limiter/Math/
- MessageParser/MoobotFactoids/Network/News/NickAuth/NickCapture/
- Nickometer/Note/Plugin/PluginDownloader/Praise/Protector/Quote/
- QuoteGrabs/RSS/Relay/Reply/Scheduler/SedRegex/Seen/Services/
- ShrinkUrl/Status/String/Success/Time/Todo/Topic/URL/Unix/
- Utilities/Web]
- [9:51 PM, 3/21/2020] Crissy: its giving me choice to look at these
- [9:51 PM, 3/21/2020] Crissy: which is cool
- [9:52 PM, 3/21/2020] slink: 🙂
- [10:24 PM, 3/21/2020] Crissy: how do i add a plugin directory?
- [10:26 PM, 3/21/2020] slink: I've never used the bot before
- [10:27 PM, 3/21/2020] slink: Did you check the website to see if there is a FAQ or documentation that has an answer?
- [10:30 PM, 3/21/2020] slink: Not seeing anything useful on their site
- [10:31 PM, 3/21/2020] slink: What exists in the bot directory? did it create a 'plugins' directory?
- [10:31 PM, 3/21/2020] Crissy: Your bot will also need to know where to find its plugins at. Of
- course, it already knows where the plugins that it came with are,
- but your own personal plugins that you write for will probably be
- somewhere else.
- Currently, the bot knows about the following directories:
- /usr/local/lib/python3.6/dist-packages/supybot/plugins
- Would you like to add another plugin directory? Adding a local plugin
- directory is good style. [y/n] (default: y) y
- What directory do you want to use? (default: ./plugins)
- [10:32 PM, 3/21/2020] Crissy: for example
- [10:32 PM, 3/21/2020] Crissy: i want to add this one
- [10:32 PM, 3/21/2020] Crissy: https://github.com/oddluck/limnoria-plugins
- [10:35 PM, 3/21/2020] slink: I believe you:
- su - fluffy
- cd ircbot
- git clone https://github.com/oddluck/limnoria-plugins
- mv limnoria-plugins plugins
- [10:38 PM, 3/21/2020] Crissy: load PluginDownloader<br />
- repolist oddluck<br />
- install oddluck PluginName<br />
- cd <YourBotDirectory>/plugins/<PluginName><br />
- cd YourBotDirectory/plugins/PluginName<br />
- python3 -m pip install -r requirements.txt --upgrade<br />
- load PluginName<br />
- [10:39 PM, 3/21/2020] Crissy: what this mean?
- [10:40 PM, 3/21/2020] slink: I don't know what the top three are
- [10:40 PM, 3/21/2020] slink: But the others are commands to change into the bot directory with the plugin, and install dependencies
- [10:40 PM, 3/21/2020] slink: the load command maybe needs running on the bot itself
- [10:54 PM, 3/21/2020] Crissy: another queston
- [10:54 PM, 3/21/2020] Crissy: on the services plugin
- [10:54 PM, 3/21/2020] Crissy: it only gives me options for nickserv and chanserv
- [10:55 PM, 3/21/2020] Crissy: how to do X
- [10:55 PM, 3/21/2020] slink: Maybe there is a third party plugin for it
- [10:55 PM, 3/21/2020] Crissy: ohhh
- [10:55 PM, 3/21/2020] Crissy: right
- [10:55 PM, 3/21/2020] Crissy: i'll have to look for it
- [10:56 PM, 3/21/2020] slink: You could probably let the ZNC handle that
- [10:56 PM, 3/21/2020] slink: If you connect it through one
- [10:57 PM, 3/21/2020] Crissy: hmm
- [10:57 PM, 3/21/2020] Crissy: how to put it on a znc?
- [10:58 PM, 3/21/2020] slink: You would look for the server/port lines, and check for a password line as well
- [11:03 PM, 3/21/2020] Crissy: but dont tell me how to put it on a znc
- [11:05 PM, 3/21/2020] slink: You create a ZNC normally
- put the server address as the ZNC server address
- the port as the ZNC port
- if ssl is enabled, make sure the bot uses SSL (however it does that, it might be another setting, or it might accept a +)
- [11:06 PM, 3/21/2020] slink: Or you mean you really don't want me to say?
- [11:06 PM, 3/21/2020] slink: http://doc.supybot.aperio.fr/en/latest/use/identifying_to_services.html#znc
- [11:07 PM, 3/21/2020] Crissy: can i create a znc on the same ip with the bot?
- [11:07 PM, 3/21/2020] Crissy: did i really say this fucking wrong, fuck, what is wrong with me
- [11:08 PM, 3/21/2020] Crissy: you know i'm close to 48 hours no sleep
- [11:08 PM, 3/21/2020] slink: You should try to sleep
- [11:08 PM, 3/21/2020] slink: You'll need to install a znc
- [11:09 PM, 3/21/2020] Crissy: but undernet doesn't have ssl
- [11:12 PM, 3/21/2020] slink: The ZNC is a relay. If it hosts SSL then the bot connects via, and the ZNC connects normal
- [11:12 PM, 3/21/2020] Crissy: you remember me bitching about how hot it ws two days ago
- [11:12 PM, 3/21/2020] Crissy: now its cold today but i'm loving it
- [11:14 PM, 3/21/2020] slink: Cold would be nice
- [11:18 PM, 3/21/2020] Crissy: yeah
- [11:35 PM, 3/21/2020] Crissy: All done! Your new bot configuration is ./fluffy.conf. If you're
- running a *nix based OS, you can probably start your bot with the
- command line "supybot ./fluffy.conf". If you're not running a
- *nix or similar machine, you'll just have to start it like you
- start all your other Python scripts.
- [11:35 PM, 3/21/2020] Crissy: i just need to know how to do the znc
- [11:36 PM, 3/21/2020] slink: Gonna watch some more TV with brother, bbiabish
- [11:36 PM, 3/21/2020] slink: Check out that link I gave you
- [11:36 PM, 3/21/2020] slink: I assume you edit the fluffy.conf and put whatever in there
- [11:36 PM, 3/21/2020] Crissy: huh?
- [11:36 PM, 3/21/2020] Crissy: :(
- [11:36 PM, 3/21/2020] Crissy: have fun
- [11:36 PM, 3/21/2020] Crissy: guess i'll figure it out
- [11:36 PM, 3/21/2020] slink: http://doc.supybot.aperio.fr/en/latest/use/identifying_to_services.html#znc
- [11:37 PM, 3/21/2020] slink: That has some of the settings
- [11:40 PM, 3/21/2020] slink: I can't find the serverport settings
- [11:45 PM, 3/21/2020] slink: grep server fluffy.conf
- [11:50 PM, 3/21/2020] slink: supybot.networks.undernet.servers: ZNCSERVERIP:ZNCPORT
- supybot.networks.undernet.password: zncuser/network:pass
- [11:52 PM, 3/21/2020] slink: supybot.networks.undernet.ssl: True
- If ssl
- [11:54 PM, 3/21/2020] slink: Hugs btw
- I hope you feel better and find some sleep
- Watching TV still but wanted to help you since you seem to be extra down
- [12:46 PM, 3/22/2020] slink: Hi
- [12:47 PM, 3/22/2020] slink: You doing better?
- [12:47 PM, 3/22/2020] Crissy: Hi
- [12:47 PM, 3/22/2020] Crissy: I guess
- [12:47 PM, 3/22/2020] Crissy: You?
- [12:47 PM, 3/22/2020] slink: hugs Chrissy with two A's
- [12:47 PM, 3/22/2020] slink: S's
- [12:47 PM, 3/22/2020] slink: Just woke up
- [12:47 PM, 3/22/2020] Crissy: What a
- [12:48 PM, 3/22/2020] Crissy: What s
- [12:48 PM, 3/22/2020] Crissy: Laugh out loud
- [12:48 PM, 3/22/2020] Crissy: I slept four hours
- [12:48 PM, 3/22/2020] slink: You figure out the bot?
- [12:48 PM, 3/22/2020] Crissy: No
- [12:48 PM, 3/22/2020] Crissy: I got mad and turned it off
- [12:48 PM, 3/22/2020] slink: You check my notes?
- [12:49 PM, 3/22/2020] Crissy: I couldn't think straight
- [12:49 PM, 3/22/2020] slink: Tech can suck
- [12:49 PM, 3/22/2020] Crissy: I can't get this damn song out my damn head
- [12:49 PM, 3/22/2020] slink: Which?
- [12:50 PM, 3/22/2020] slink: I have an actress stuck in my head right now
- [12:50 PM, 3/22/2020] Crissy: Sixx am life is beautiful
- [12:53 PM, 3/22/2020] slink: Yeah?
- [1:32 PM, 3/22/2020] Crissy: no
- [1:33 PM, 3/22/2020] Crissy: i gotta clock in for work
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement