<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.bebot.link/index.php?action=history&amp;feed=atom&amp;title=Shortcuts</id>
	<title>Shortcuts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.bebot.link/index.php?action=history&amp;feed=atom&amp;title=Shortcuts"/>
	<link rel="alternate" type="text/html" href="http://wiki.bebot.link/index.php?title=Shortcuts&amp;action=history"/>
	<updated>2026-05-25T22:23:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.bebot.link/index.php?title=Shortcuts&amp;diff=104&amp;oldid=prev</id>
		<title>B3b0tUzR: Created page with &#039;====== Introduction ====== The central shortcut database allows using the easy use of shortcuts for long descriptions in modules, as well as returning the corresponding long desc…&#039;</title>
		<link rel="alternate" type="text/html" href="http://wiki.bebot.link/index.php?title=Shortcuts&amp;diff=104&amp;oldid=prev"/>
		<updated>2020-09-16T22:48:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;====== Introduction ====== The central shortcut database allows using the easy use of shortcuts for long descriptions in modules, as well as returning the corresponding long desc…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;====== Introduction ======&lt;br /&gt;
The central shortcut database allows using the easy use of shortcuts for long descriptions in modules, as well as returning the corresponding long descriptions for shortcuts. The table storing the shortcuts is per default shared among all bots in the same database. The module [[ShortCutsGUI.php]] offers an interface to store new entries and delete existing entries in the cache.&lt;br /&gt;
&lt;br /&gt;
====== Using shortcuts in modules ======&lt;br /&gt;
The shortcuts core offers several functions to access and edit the shortcut database. All the functions ignore the cases of shortcuts and long descriptions. Any array returned is a [[BeBot Standard Return Array]].&lt;br /&gt;
  * //$this -&amp;gt; bot -&amp;gt; shortcuts -&amp;gt; get_short($long)// returns any existing shortcut for the long description. If no shortcut is yet defined it returns //$long// unmodified back.&lt;br /&gt;
  * //$this -&amp;gt; bot -&amp;gt; shortcuts -&amp;gt; get_long($short)// returns any existing long description of //$short//. If no description is in the database it returns //$short// unmodified back.&lt;br /&gt;
  * //$this -&amp;gt; bot -&amp;gt; shortcuts -&amp;gt; add($short, $long)// adds a new entry to the cache as long as neither //$short// nor //$long// are in the database yet. This function returns an array.&lt;br /&gt;
  * //$this -&amp;gt; bot -&amp;gt; shortcuts -&amp;gt; delete_shortcut($short)// removes the long description to //$short// as well as the shortcut if it exists. This function returns an array.&lt;br /&gt;
  * //$this -&amp;gt; bot -&amp;gt; shortcuts -&amp;gt; delete_description($long)// removes the shortcut to //$long// as well as the long description if it exists. This function returns an array.&lt;br /&gt;
  * //$this -&amp;gt; bot -&amp;gt; shortcuts -&amp;gt; delete_id($id)// removes the shortcut and long description indexed by //$id// if it exists. This function returns an array.&lt;/div&gt;</summary>
		<author><name>B3b0tUzR</name></author>
	</entry>
</feed>