This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Information We Collect: | |
Personal Assistant collects and stores only the information necessary for its functionality within Discord servers. This includes: | |
- User IDs | |
- Server IDs | |
- Message content when commands are used | |
2. How We Use Information: | |
We use the collected information solely for the purpose of providing and improving the bot's services within Discord. This includes: | |
- Responding to user commands | |
- Storing user preferences |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Terms of Service for Personal Assistant Discord Bot | |
1. Acceptance of Terms | |
By using the Personal Assistant Discord Bot, you agree to these Terms of Service. | |
2. Use of the Bot | |
Personal Assistant is designed to assist users with various tasks within Discord servers. Use it responsibly and in compliance with Discord's Terms of Service. | |
3. User Responsibilities | |
You are responsible for any commands or interactions you have with the bot. Do not use the bot for any illegal or harmful activities. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install pip via apt-get | |
sudo apt-get install python-pip python-dev build-essential | |
sudo pip install --upgrade pip | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
fabfile for Django | |
------------------ | |
see http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p/ | |
modified for fabric 0.9/1.0 by Hraban (fiëé visuëlle) | |
several additions, corrections and customizations, too |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For other ways of doing this see this question on stackoverflow: http://stackoverflow.com/questions/2153882/how-can-i-shuffle-the-lines-of-a-text-file-in-unix-command-line | |
cat myfile | awk 'BEGIN{srand();}{print rand()"\t"$0}' | sort -k1 -n | cut -f2- > myfile.shuffled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz | |
tar -xvzf ruby-1.9.3-p194.tar.gz | |
cd ruby-1.9.3-p194/ | |
./configure --prefix=/usr/local | |
make | |
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Common initialization to all commands below. Change USERNAME and PASSWORD accordingly. | |
export user=USERNAME | |
export pass=PASSWORD | |
#Sample (gardenhose or spritzer based on your access levels) | |
curl -3 --verbose -u$user:$pass https://stream.twitter.com/1/statuses/sample.json > /dev/null | |
# Firehose | |
curl -3 --verbose -u$user:$pass https://stream.twitter.com/1/statuses/firehose.json > /dev/null |