Skip to main content

Nyancoin tip bot for Reddit.

Project description

# It’s nyantip!

## Getting started

### Install

__Note__: If the following doesn’t work, ensure you have pip installed: <https://packaging.python.org/guides/installing-using-linux-tools/>

`sh pip install nyantip `

If you would like to make encrypted backups, then install via:

`sh pip install nyantip[gpg] `

### Database

Create a new MySQL database instance and run included SQL file database.sql to create necessary tables. Create a MySQL user and grant it all privileges on the database.

`sh echo "create database nyantip" | mysql && mysql nyantip < database.sql `

### NyanCoin Daemons

Download nyancoin. Create a configuration file for it in ~/.nyancoin/nyancoin.conf specifying rpcuser, rpcpassword, rpcport, and server=1, then start the daemon. It will take some time for the daemon to download the blockchain, after which you should verify that it’s accepting commands, e.g., nyancoin getinfo and nyancoin listaccounts.

### Reddit Account

Create a dedicated Reddit account for your bot, and prepare an OAuth script-type application as described here: <https://github.com/reddit-archive/reddit/wiki/OAuth2-Quick-Start-Example#first-steps>

The bot should be granted “Manage Users” and “Manage Wiki Pages” moderator permissions on the target subreddit.

### Configuration Files

Copy the sample configuration file nyantip-sample.yml to ~/.config/nyantip.yml. Make any necessary edits.

### Run

`sh nyantip `

### Create Backup

`sh nyantip backup `

The backup will be saved in your current directory as backup_nyantip_YYYYmmDDHHMM.zip, or with the added .gpg suffix if a value for backup_passphrase was set in your config file.

## History

nyantip was originally a fork of mohland’s [dogetipbot](https://github.com/mohland/dogetipbot), which in turn is a fork of vindimy’s [ALTcointip](https://github.com/vindimy/altcointip).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nyantip-0.7.0.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

nyantip-0.7.0-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file nyantip-0.7.0.tar.gz.

File metadata

  • Download URL: nyantip-0.7.0.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for nyantip-0.7.0.tar.gz
Algorithm Hash digest
SHA256 23ff674112723b8336539fa17ccd07381fbb6dea9613a5f14ce071e55dc34678
MD5 ad92b287e18f98beabf75b44abfbe767
BLAKE2b-256 a12b81fe33723b79a27bdb5a60edb11d7e3d066f62f021703b02adf7789f9119

See more details on using hashes here.

Provenance

File details

Details for the file nyantip-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: nyantip-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for nyantip-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abbadf65de1ef5c2df9278f4efe653a73df5f512551ae2e4f0864a7cb26205e7
MD5 2199da53c50d1807a119a2268e16632f
BLAKE2b-256 67a38f3b1d11cd25f70252f019fad68ecd995e5fdcf2039340dc5c9cb0a446e2

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page