- Python 3
- Pip 3
$ brew install python3| Allers Bottom | |
| Culack | |
| Swrarby | |
| Fenwall St Eastake | |
| Anbarth | |
| St Ninhope | |
| Thawkanham Water Green | |
| Mige Lane | |
| Up Maling | |
| Firley Dinch |
Find the Discord channel in which you would like to send commits and other updates
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
| # Supercharge your Travis builds with yarn | |
| # Commit your lock file locally, and change your travis to this | |
| language: node_js | |
| node_js: | |
| - "4" | |
| install: | |
| - npm -g install yarn | |
| - yarn | |
| cache: | |
| directories: |
| <?php | |
| /** | |
| * Implements hook_form_FORM_ID_alter(). | |
| * | |
| * Move your field or group of fields to the node form options vertical tabs. | |
| */ | |
| function mymodule_form_node_form_alter(&$form, FormState $form_state, $form_id) { | |
| $form['mygroup'] = [ |
Making a bot? Making a bot in Python? Making a bot in Python that uses the Mastodon API? If so, chances are you need to get some credentials. Here's how I did it!
(The following tutorial uses Python 2.7, but if you're using Python 3+ everything should work substantially the same.)
I just started using it, but it looks like Mastodon.py is a pretty great library for working with the Mastodon API! However, all of the authentication examples use static files to store credentials, which I don't like—I'm afraid I'll accidentally push them to Github. I like to keep my authentication as close to the actual command that runs the program as possible, so usually I pass them on the command line to the script running my bot. To do this, I need to get the appropriate credentials on their own, as separate strings that I can cut and paste.