<div dir="ltr">Hi Martin,<div><br></div><div>That&#39;s a good question. If I&#39;m totally honest, I&#39;m not sure what to expect from it. For the past few months I&#39;ve had the V1 of the Twitter Bot running on my &quot;work&quot; Twitter account. This means no university branding and no being shared by the university to the public etc.</div><div><br></div><div>Some weeks a tweet gets found and liked/retweeted by a big account and it gets a lot of clicks. Other weeks it&#39;s quiet. Last week (the first real week back since Christmas) we had 39 unique social media users visiting the repository, 35 of which had never visited before. This translated to 535 page views. There are other risks to be considered, such as being retweeted by an extreme right-wing academic who has been no-platformed across some universities in the UK. This happened last week and it wasn&#39;t really an issue, but it COULD be an issue I suppose.</div><div><br></div><div>My motivation behind it is personally to get to grips with as many popular APIs as I can and to make our publications not just available, but publicised as much as possible. I also want an excuse to make an EPrints plugin so that I can actually contribute to the community instead of just taking from it as I have so far!</div><div><br></div><div>Thanks,</div><div>James</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 16, 2020 at 1:17 PM &lt;<a href="mailto:martin.braendle@uzh.ch">martin.braendle@uzh.ch</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<p><font size="2" face="sans-serif">Hi James,</font><br>
<br>
<font size="2" face="sans-serif">interesting idea. What is the motivation and what do you expect from posting 6000 tweets anually from UoL repo?</font><br>
<br>
<font size="2" face="sans-serif">Kind regards,</font><br>
<br>
<font size="2" face="sans-serif">Martin</font><br>
<br>
<br>
<img width="16" height="16" src="cid:16faf14191e308fca931" border="0" alt="Inactive hide details for &quot;James Kerwin via Eprints-tech&quot; ---16.01.2020 12:58:41---Hi Adam, I don&#39;t usually use GitHub, but I&#39;v"><font size="2" color="#424282" face="sans-serif">&quot;James Kerwin via Eprints-tech&quot; ---16.01.2020 12:58:41---Hi Adam, I don&#39;t usually use GitHub, but I&#39;ve given myself a refresher /crash course.</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">Von:        </font><font size="1" face="sans-serif">&quot;James Kerwin via Eprints-tech&quot; &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">eprints-tech@ecs.soton.ac.uk</a>&gt;</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">An:        </font><font size="1" face="sans-serif"><a href="mailto:adam@adamfield.net" target="_blank">adam@adamfield.net</a></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Kopie:        </font><font size="1" face="sans-serif"><a href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">eprints-tech@ecs.soton.ac.uk</a></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Datum:        </font><font size="1" face="sans-serif">16.01.2020 12:58</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Betreff:        </font><font size="1" face="sans-serif">Re: [EP-tech] User Roles</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Gesendet von:        </font><font size="1" face="sans-serif">&lt;<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank">eprints-tech-bounces@ecs.soton.ac.uk</a>&gt;</font><br>
</p><hr width="100%" size="2" align="left" noshade style="color:rgb(128,145,165)"><br>
<br>
<br>
<font size="3" face="serif">Hi Adam,</font><br>
<br>
<font size="3" face="serif">I don&#39;t usually use GitHub, but I&#39;ve given myself a refresher /crash course.<br>
</font><font size="3" color="#0000FF" face="serif"><u><br>
</u></font><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjkerwin22%2Fuolrepo_test%2Ftree%2Fmaster%2Fcfg%2Fplugins%2FEPrints%2FPlugin%2FEvent&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=wQO3iuvnaD733pQwODA1RWiz6pdHtAWuwwEPOYvCs%2Bs%3D&amp;reserved=0" originalSrc="https://github.com/jkerwin22/uolrepo_test/tree/master/cfg/plugins/EPrints/Plugin/Event" shash="mSrZqqMcQvFqcwXRkZ3Skn+CF/D22V2hk3lw20aqYO8BYlvOKqMM89SDSOiwkE6nud1keRQmNU3EQbAMslHOZXzAh8eL3VEc76DETIPTPIXYxO3tZL0wKsw5bkJ8zcKX/p1SYfW3c0s//Kvi1IFjqb5C9H1HzhiHmyli6FjtJiQ=" target="_blank"><font size="3" color="#0000FF" face="serif"><u>https://github.com/jkerwin22/uolrepo_test/tree/master/cfg/plugins/EPrints/Plugin/Event</u></font></a><font size="3" face="serif"> </font><br>
<a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjkerwin22%2Fuolrepo_test%2Fblob%2Fmaster%2Fcfg%2Fcfg.d%2Ftwitter_v2_2.pl&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=8Y8hHVbZ8ZQnm7wL6Or%2F4tWb5wHGJ93lOHYPiWJuUl8%3D&amp;reserved=0" originalSrc="https://github.com/jkerwin22/uolrepo_test/blob/master/cfg/cfg.d/twitter_v2_2.pl" shash="d6gVlrnWtEZHBqcFIx4l4SxnT06k1O81MhxreMHeZsFU8Gme4+Sb1UZb12tQwz4hm7FMKZuPazh6P7HizmMS6e+E0OCaz3O1sq9JBRA2XoisHubcg307hjHr6lAdu+A4edJTP1ReCvePlNAxPbjmaRqW4nZCONLFXWXJbxZoZ/A=" target="_blank"><font size="3" color="#0000FF" face="serif"><u>https://github.com/jkerwin22/uolrepo_test/blob/master/cfg/cfg.d/twitter_v2_2.pl</u></font></a><font size="3" face="serif">  </font><br>
<br>
<font size="3" face="serif">I&#39;ve included a &quot;sub bish&quot; in the TwitterEvent.pm which was to test if this file was being reached at all, with the hope that it would add a unique/nonsense string to my error log. This didn&#39;t work.</font><br>
<br>
<font size="3" face="serif">Whatever mistake I&#39;ve made, it must be incredibly basic. I was under no illusion that the plugin would be correct first time (it&#39;s almost certainly got errors), but I would expect the nonsense text to reach the error log so I can at least know that it&#39;s trying to run my script.</font><br>
<br>
<font size="3" face="serif">Thanks,</font><br>
<font size="3" face="serif">James<br>
 </font><br>
<br>
<font size="3" face="serif">On Thu, Jan 16, 2020 at 8:39 AM &lt;</font><a href="mailto:adam@adamfield.net" target="_blank"><font size="3" color="#0000FF" face="serif"><u>adam@adamfield.net</u></font></a><font size="3" face="serif">&gt; wrote:</font>
<ul style="padding-left:9pt;margin-left:0px"><font size="3" face="serif">Is it in github?  Can you link me to the code?</font><br>
<br>
<font size="3" face="serif">On 16 Jan 2020 08:31, James Kerwin via Eprints-tech &lt;</font><a href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank"><font size="3" color="#0000FF" face="serif"><u>eprints-tech@ecs.soton.ac.uk</u></font></a><font size="3" face="serif">&gt; wrote:</font>
<ul style="padding-left:9pt;margin-left:0px"><font size="3" face="serif">Hi All,</font><br>
<br>
<font size="3" face="serif">I rewrote my twitter bot using a different Perl module as it wasn&#39;t working how I wanted it to (failed with &quot;special characters&quot;).</font><br>
<br>
<font size="3" face="serif">It worked when I rewrote it as a .pl in cfg.d. I then decided to rewrite it as an Event plugin as this seems like the &quot;proper&quot; way to do things. Unfortunately, it doesn&#39;t work.</font><br>
<br>
<font size="3" face="serif">I can see that it gets added to the indexer and it subsequently fails.</font><br>
<br>
<font size="3" face="serif">One possible reason it fails is that I don&#39;t have any user roles set up for it. For an event plugin, do I need user roles to be set up?</font><br>
<br>
<font size="3" face="serif">I&#39;ve tried to look at documentation for other plugins, but they also involve a &quot;Screen&quot; plugin which is what I assume the user roles are for. My plugin just uses the status change trigger to compile and send a tweet.</font><br>
<br>
<font size="3" face="serif">Any pointers greatly appreciated.</font><br>
<br>
<font size="3" face="serif">Thanks,</font><br>
<font size="3" face="serif">James</font></ul>
<tt><font size="2">*** Options: </font></tt><tt><font size="2"><a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a></font></tt><tt><font size="2"><br>
*** Archive: </font></tt><tt><font size="2"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=hn%2FrXniOzihhPRqm3CtXhB%2BqOwGEkDCmSO5J%2BAQMMZQ%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="NxFcB7PA3QmbziZGTpTT5l7bSnLKm2kgqNgNSOXMNEJhy2bmLm26OFO3EruEjA5rtqbb4aTT+ZpTD4A0AbSerLdPzJh+vDHozdwic3SHf3TONdBuWCruLY1igJ55PQmnDB1TK4jw2VVv8zz094kWxLOZY7pFwZu4PBkQbPXZ6Wk=" target="_blank">http://www.eprints.org/tech.php/</a></font></tt><tt><font size="2"><br>
*** EPrints community wiki: </font></tt><tt><font size="2"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=kX1oSvFbHTXbU0ySRq23Tj%2FRVo7FXU%2FIi6NX8Fuk0XE%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="pYzjmRKafn3GKUC68PT7aUwVNBIHwAsDlHg4+G8aI9gFfnqDX6uWRMPE5PytqcdInBvMOmD7iHMC0dxcbBMIfrepnOHemE2w+Sl5T0ShkspASNM7YaKa9JwA/HYuDBKWcobvCz2sIkOkHhEjcC+04ZnUoq9N+Rzi50tax4pKvQk=" target="_blank">http://wiki.eprints.org/</a></font></tt><tt><font size="2"><br>
*** EPrints developers Forum: </font></tt><tt><font size="2"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca969b9e092254434d35608d79a9e658d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=fT7KKrQDv4Lz00Gbp4%2FxXXgQIlkWFOdFA6nR6WHJwLg%3D&amp;reserved=0" originalSrc="http://forum.eprints.org/" shash="RqPrwnTjufvDVa+IZ9jbn6uPev4g/rUCKOKT6vjBkJiGX8/MtZV5Czdpxxh0RRYEn6ZDdjyKv5O3g2zE7cyiAA9iq0v0LsOIbShCRgl5RDIdmWQ9EKBcoZ5Ni9XrNfCovScFlH99vRGIwH9sMAQuPx6FNdLP7BkFTKsDEeLGeQs=" target="_blank">http://forum.eprints.org/</a></font></tt><tt><font size="2"><br>
</font></tt><br>
<br>
</ul>
<p></p></div>
</blockquote></div>